From 26580e812b00365452245722b7167f2b54dbe3d8 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Tue, 20 Dec 2011 01:21:05 +0000 Subject: [PATCH] Add quick settings to admin page, and placeholder full settings page --- source/webui/pages/admin.php | 7 ++++ source/webui/pages/admin/settings.php | 7 ++++ source/webui/templates/admin.tpl | 48 ++++++++++++++++++++++- source/webui/templates/admin/settings.tpl | 1 + 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 source/webui/pages/admin/settings.php create mode 100644 source/webui/templates/admin/settings.tpl diff --git a/source/webui/pages/admin.php b/source/webui/pages/admin.php index 0a46c19..310f7ca 100644 --- a/source/webui/pages/admin.php +++ b/source/webui/pages/admin.php @@ -2,10 +2,17 @@ $main = StatusBoard_Main::instance(); $auth = $main->auth(); +$config = $main->config(); $services = StatusBoard_Service::all(); $this->smarty->assign('services', $services); $users = $auth->listUsers(); $this->smarty->assign('users', $users); + +// Quick Settings +$this->smarty->assign('debug_displayexceptions', $config->get('debug.display_exceptions')); +$this->smarty->assign('cache_basedir', $config->get('cache.base_dir')); +$this->smarty->assign('templates_tmppath', $config->get('templates.tmp_path')); + ?> \ No newline at end of file diff --git a/source/webui/pages/admin/settings.php b/source/webui/pages/admin/settings.php new file mode 100644 index 0000000..2e64d32 --- /dev/null +++ b/source/webui/pages/admin/settings.php @@ -0,0 +1,7 @@ +auth(); +$config = $main->config(); + +?> \ No newline at end of file diff --git a/source/webui/templates/admin.tpl b/source/webui/templates/admin.tpl index f4eb6d0..298b40b 100644 --- a/source/webui/templates/admin.tpl +++ b/source/webui/templates/admin.tpl @@ -38,4 +38,50 @@
-
\ No newline at end of file + + +

Settings

+ +

+ Quick access to important settings. Please use the full settings + page to configure more advanced settings. +

+ +
+
+
+
+
+ Quick Settings + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+   +
+
+
+
+
+
+
diff --git a/source/webui/templates/admin/settings.tpl b/source/webui/templates/admin/settings.tpl new file mode 100644 index 0000000..30404ce --- /dev/null +++ b/source/webui/templates/admin/settings.tpl @@ -0,0 +1 @@ +TODO \ No newline at end of file