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 b150c232ce..536ebd2f44 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 5a964ae7a3..ed92e10110 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 e169d46c41..6218dfbd4f 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 c64f70bc60..e716766492 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; +} -- 2.39.5