diff --git a/.gitignore b/.gitignore index e6b6e69..7364655 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /javascript/dev/ /javascript/build/ /node_modules/ +package-lock.json diff --git a/Module.php b/Module.php index ce680df..a0e97d5 100644 --- a/Module.php +++ b/Module.php @@ -92,7 +92,7 @@ private function showNavBar(Request $request) private function showList() { - return ' Show list'; + return ' Show list'; } public static function autoloader($class_name) diff --git a/class/Controller/Show/Admin.php b/class/Controller/Show/Admin.php index c8792bd..9ff6ad0 100644 --- a/class/Controller/Show/Admin.php +++ b/class/Controller/Show/Admin.php @@ -48,7 +48,7 @@ protected function listHtmlCommand(Request $request) $this->createShowButton(); return $this->factory->scriptView('ShowList'); } - + protected function listJsonCommand(Request $request) { return array('listing'=>$this->factory->listing(true)); @@ -63,7 +63,7 @@ protected function deleteCommand(Request $request) { $this->factory->delete($this->id); } - + protected function putCommand(Request $request) { $this->factory->put($this->id, $request); @@ -74,7 +74,7 @@ private function createShowButton() { $nav = new NavBar(); $create = << Create new show + Create New SlideShow EOF; $nav->addItem($create); } diff --git a/exports.js b/exports.js index 70e42ff..fb17552 100644 --- a/exports.js +++ b/exports.js @@ -3,7 +3,9 @@ exports.APP_DIR = exports.path.resolve(__dirname, 'javascript') exports.entry = { vendor: ['react', 'react-dom'], + /* ShowList: exports.APP_DIR + '/ShowList/index.jsx', SlideList: exports.APP_DIR + '/SlideList/index.jsx', SlideEdit: exports.APP_DIR + '/SlideEdit/index.jsx', + */ } diff --git a/templates/navbar.html b/templates/navbar.html index 713165f..718b063 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -1,64 +1,54 @@ - - - - Toggle navigation - - - - - - - - - - Home - + + + + + + + Home + + + + =$current_area?> + + + Example - Does nothing + + - - | - - - | - - - - =$item?> - - - - - - | - - - - =$title?> - - - - =$options?> - - - - - - - - - =$username ?> - - - - Control panel - - - - Sign out - - - - - - - \ No newline at end of file + + + + =$item?> + + + + + + + =$title?> + + + =$options?> + + + + + + My properties + + + + + + =$username ?> + + + Control panel + + Sign out + + + + +