From 366a7c2541f9914b524ebaf5b6efa50eaeb211f3 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Fri, 27 Sep 2013 20:51:34 -0400 Subject: [PATCH] Use a layout without a sidebar for the Config page --- web/app/Controller/ConfigController.php | 1 + web/app/View/Layouts/nosidebar.ctp | 88 +++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 web/app/View/Layouts/nosidebar.ctp diff --git a/web/app/Controller/ConfigController.php b/web/app/Controller/ConfigController.php index 3e4e04791..312b74afc 100644 --- a/web/app/Controller/ConfigController.php +++ b/web/app/Controller/ConfigController.php @@ -2,6 +2,7 @@ class ConfigController extends AppController { public function index() { + $this->layout = 'nosidebar'; // Get a list of categories $categories = $this->Config->find('all', array('fields' => array('Category'), 'group' => array('Category'), 'conditions' => array('Category !=' => 'hidden'))); $this->set('categories', $categories); diff --git a/web/app/View/Layouts/nosidebar.ctp b/web/app/View/Layouts/nosidebar.ctp new file mode 100644 index 000000000..a99432f1d --- /dev/null +++ b/web/app/View/Layouts/nosidebar.ctp @@ -0,0 +1,88 @@ + + + + + Html->charset(); ?> + + <?php echo $cakeDescription ?>: + <?php echo $title_for_layout; ?> + + Html->meta('icon'); + + echo $this->Html->css('jquery-ui.min'); + echo $this->Html->css('colorbox'); + echo $this->Html->css('bootstrap-theme.min'); + echo $this->Html->css('bootstrap.min'); + echo $this->Html->css('main'); + + echo $this->fetch('meta'); + echo $this->fetch('css'); + echo $this->fetch('script'); + echo $this->Html->script('jquery-2.0.1.min'); + echo $this->Html->script('jquery-ui.min'); + echo $this->Html->script('jquery.expander.min'); + echo $this->Html->script('jquery.colorbox-min'); + echo $this->Html->script('bootstrap.min'); + echo $this->Html->script('main'); + ?> + + + +
+ Session->flash(); ?> + + fetch('content'); ?> +
+ +
+ +Js->writeBuffer(); ?> + +