From ec68e33c6b91293531a3ef34d3e3a5c089273739 Mon Sep 17 00:00:00 2001 From: hauke Date: Sat, 6 Sep 2014 13:53:23 +0200 Subject: [PATCH] make items on settings pages fold/unfold on click --- view/templates/settings-head.tpl | 6 ++++++ view/templates/settings.tpl | 16 +++++++++++++--- view/templates/settings_features.tpl | 5 +++-- view/theme/vier/style.css | 3 +++ 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/view/templates/settings-head.tpl b/view/templates/settings-head.tpl index b150c232c..536ebd2f4 100644 --- a/view/templates/settings-head.tpl +++ b/view/templates/settings-head.tpl @@ -19,6 +19,12 @@ } }).trigger('change'); + + $('.settings-block').hide(); + $('.settings-heading').click(function(){ + $('.settings-block').hide(); + $(this).next('.settings-block').toggle(); + }); }); diff --git a/view/templates/settings.tpl b/view/templates/settings.tpl index 5a964ae7a..ed92e1011 100644 --- a/view/templates/settings.tpl +++ b/view/templates/settings.tpl @@ -6,7 +6,7 @@

{{$h_pass}}

- +
{{include file="field_password.tpl" field=$password1}} {{include file="field_password.tpl" field=$password2}} {{include file="field_password.tpl" field=$password3}} @@ -18,9 +18,10 @@
- +

{{$h_basic}}

+
{{include file="field_input.tpl" field=$username}} {{include file="field_input.tpl" field=$email}} @@ -33,10 +34,11 @@
+

{{$h_prv}}

- +
@@ -102,10 +104,13 @@
+
+

{{$h_not}}

+
{{$activity_options}}
@@ -133,9 +138,11 @@
+

{{$h_advn}}

+
{{$h_descadvn}}
{{$pagetype}} @@ -143,13 +150,16 @@
+

{{$relocate}}

+
{{$relocate_text}}
+
diff --git a/view/templates/settings_features.tpl b/view/templates/settings_features.tpl index e169d46c4..6218dfbd4 100644 --- a/view/templates/settings_features.tpl +++ b/view/templates/settings_features.tpl @@ -7,15 +7,16 @@ {{foreach $features as $f}}

{{$f.0}}

+
{{foreach $f.1 as $fcat}} {{include file="field_yesno.tpl" field=$fcat}} {{/foreach}} -{{/foreach}} -
+
+{{/foreach}} diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index c64f70bc6..e71676649 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -2728,3 +2728,6 @@ a.mail-list-link { border: none; } +.settings-heading { + cursor: pointer; +}