]> git.mxchange.org Git - friendica.git/commitdiff
make items on settings pages fold/unfold on click
authorhauke <hauke@grlg.org>
Sat, 6 Sep 2014 11:53:23 +0000 (13:53 +0200)
committerhauke <hauke@grlg.org>
Sat, 6 Sep 2014 11:53:23 +0000 (13:53 +0200)
view/templates/settings-head.tpl
view/templates/settings.tpl
view/templates/settings_features.tpl
view/theme/vier/style.css

index b150c232ce4fc044c78072b22c5a0f5c0e125461..536ebd2f443d2bcf29e15077811cb0dd1b75ce8c 100644 (file)
                        }
 
                }).trigger('change');
+               
+               $('.settings-block').hide();
+               $('.settings-heading').click(function(){
+                       $('.settings-block').hide();
+                       $(this).next('.settings-block').toggle();
+               });
 
        });
 
index 5a964ae7a3f72285f20882ec232048b43225b80d..ed92e101107d195dd60387407a2697519568b4ac 100644 (file)
@@ -6,7 +6,7 @@
 <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
 
 <h3 class="settings-heading">{{$h_pass}}</h3>
-
+<div class="settings-block">
 {{include file="field_password.tpl" field=$password1}}
 {{include file="field_password.tpl" field=$password2}}
 {{include file="field_password.tpl" field=$password3}}
 <div class="settings-submit-wrapper" >
 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
 </div>
-
+</div>
 
 <h3 class="settings-heading">{{$h_basic}}</h3>
+<div class="settings-block">
 
 {{include file="field_input.tpl" field=$username}}
 {{include file="field_input.tpl" field=$email}}
 <div class="settings-submit-wrapper" >
 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
 </div>
+</div>
 
 
 <h3 class="settings-heading">{{$h_prv}}</h3>
-
+<div class="settings-block">
 
 <input type="hidden" name="visibility" value="{{$visibility}}" />
 
 <div class="settings-submit-wrapper" >
 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
 </div>
+</div>
+
 
 
 
 <h3 class="settings-heading">{{$h_not}}</h3>
+<div class="settings-block">
 <div id="settings-notifications">
 
 <div id="settings-activity-desc">{{$activity_options}}</div>
 <div class="settings-submit-wrapper" >
 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
 </div>
+</div>
 
 
 <h3 class="settings-heading">{{$h_advn}}</h3>
+<div class="settings-block">
 <div id="settings-pagetype-desc">{{$h_descadvn}}</div>
 
 {{$pagetype}}
 <div class="settings-submit-wrapper" >
 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
 </div>
+</div>
 
 <h3 class="settings-heading">{{$relocate}}</h3>
+<div class="settings-block">
 <div id="settings-pagetype-desc">{{$relocate_text}}</div>
 
 <div class="settings-submit-wrapper" >
 <input type="submit" name="resend_relocate" class="settings-submit" value="{{$relocate_button}}" />
 </div>
+</div>
 
 
 
index e169d46c41a625756ba4d38f8f165859e4d465a6..6218dfbd4f5807d94077d0ef0d4bcf42ce9cc0ed 100644 (file)
@@ -7,15 +7,16 @@
 
 {{foreach $features as $f}}
 <h3 class="settings-heading">{{$f.0}}</h3>
+<div class="settings-block">
 
 {{foreach $f.1 as $fcat}}
        {{include file="field_yesno.tpl" field=$fcat}}
 {{/foreach}}
-{{/foreach}}
-
 <div class="settings-submit-wrapper" >
 <input type="submit" name="submit" class="settings-features-submit" value="{{$submit}}" />
 </div>
+</div>
+{{/foreach}}
 
 </form>
 
index c64f70bc6060bd272d2940c64f7a92271c7ee06c..e716766492f0198c446a603e7ad56288f8d3c2e5 100644 (file)
@@ -2728,3 +2728,6 @@ a.mail-list-link {
         border: none;
 }
 
+.settings-heading {
+       cursor: pointer;
+}