From 6141a85bfb0f928c28c0732704cb2132af9f3626 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 10 Sep 2009 09:33:07 -0500 Subject: [[PATCH][sysprefs_editor]] Reformat system pref sections as collapsible blocks Content-Type: text/plain; charset="utf-8" This patch breaks the single large tables with multiple header rows into multipl e tables with separate headings for each. Clicking the heading collapses that section. The goal is to improve clarity when scanning through a large number of prefs. --- .../intranet-tmpl/prog/en/css/preferences.css | 26 +++++++ .../prog/en/modules/admin/preferences.tmpl | 76 ++++++++++++------- 2 files changed, 74 insertions(+), 28 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css b/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css index 54ff036..7d1ff87 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css @@ -23,3 +23,29 @@ textarea.preference-code, .preference-file { a.expand-textarea { display: block; } + +table { + width : 100%; +} + +caption { + color : #003399; +} + +h3 { + color : #003366; + margin : .4em 0; + width : 25%; +} + +h3.expanded { + background : transparent url("../../img/collapse.gif") 0 6px no-repeat; + cursor : pointer; + padding-left : 12px; +} + +h3.collapsed { + background : transparent url("../../img/expand.gif") 0 6px no-repeat; + cursor : pointer; + padding-left : 12px; +} \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl index ecaf758..5bfeabf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl @@ -1,14 +1,30 @@ Koha › Administration › System Preferences -/css/preferences.css"> -/css/humanmsg.css"> +/css/preferences.css" /> +/css/humanmsg.css" /> @@ -36,7 +52,7 @@
-
+ " /> @@ -45,8 +61,8 @@
-

System preferences

+

System preferences

Could not find a system preference named .
@@ -59,33 +75,34 @@

preferences

-
+ " /> - - - - - - + +

+ -

- - + +
PreferenceValue
+

+ + + +

+ - +
PreferenceValue
PreferenceValue
- +
" class="cancel">Cancel
-- 1.5.6.5