From 22e7093cc878768969661cb837f25dfa98255084 Mon Sep 17 00:00:00 2001 From: Eric Cambel Date: Mon, 21 May 2018 13:14:48 -0400 Subject: [PATCH] fixes the navbar for bootstrap 4 --- .gitignore | 1 + Module.php | 2 +- class/Controller/Show/Admin.php | 6 +- exports.js | 2 + templates/navbar.html | 116 +++++++++++++++----------------- 5 files changed, 60 insertions(+), 67 deletions(-) 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 + 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 @@ -
- - - \ No newline at end of file + + + + + + + + + + + + + +
+