aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/settings.tpl
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2014-02-13 19:29:06 +0100
committermarijus <mario@localhost.localdomain>2014-02-13 19:29:06 +0100
commitd7546c7a638214f53219d342300ef659668a4975 (patch)
treed846825a260e4681c6361ec04c47701cfd9c749f /view/tpl/settings.tpl
parent5cedc324eb290e32f547e23799ec3e09fc30c496 (diff)
downloadvolse-hubzilla-d7546c7a638214f53219d342300ef659668a4975.tar.gz
volse-hubzilla-d7546c7a638214f53219d342300ef659668a4975.tar.bz2
volse-hubzilla-d7546c7a638214f53219d342300ef659668a4975.zip
This makes advanced privacy settings adjustable in expert mode only. Also they are hidden behind a button. This is a design hotfix should probably come up with something better someday...
Diffstat (limited to 'view/tpl/settings.tpl')
-rwxr-xr-xview/tpl/settings.tpl34
1 files changed, 23 insertions, 11 deletions
diff --git a/view/tpl/settings.tpl b/view/tpl/settings.tpl
index c4b89a543..808078413 100755
--- a/view/tpl/settings.tpl
+++ b/view/tpl/settings.tpl
@@ -16,7 +16,7 @@
{{include file="field_checkbox.tpl" field=$adult}}
<div class="settings-submit-wrapper" >
-<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
+<input type="submit" name="submit" class="settings-submit" value="{{$submit}}"{{if !$expert}} onclick="$('select').prop('disabled', false);"{{/if}} />
</div>
@@ -34,20 +34,31 @@
</ul>
-<h3 id="settings-perm-advanced">{{$lbl_p2macro}}</h3>
+<button type="button" class="btn btn-xs btn-warning" data-toggle="collapse" data-target="#settings-permissions-wrapper">{{$lbl_p2macro}}</button>
+
+
+
+<div class="collapse well" id="settings-permissions-wrapper">
+{{if !$expert}}
+ <div class="alert alert-info">{{$hint}}</div>
+{{/if}}
-<div id="settings-permissions-wrapper">
{{foreach $permiss_arr as $permit}}
-{{include file="field_select.tpl" field=$permit}}
+ {{if $expert}}
+ {{include file="field_select.tpl" field=$permit}}
+ {{else}}
+ {{include file="field_select_disabled.tpl" field=$permit}}
+ {{/if}}
{{/foreach}}
-</div>
+{{if $expert}}
+ <div class="settings-submit-wrapper" >
+ <input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
+ </div>
+{{/if}}
-<div class="settings-submit-wrapper" >
-<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
</div>
-
-
+<div class="settings-common-perms">
{{$profile_in_dir}}
{{$suggestme}}
@@ -55,6 +66,7 @@
{{include file="field_input.tpl" field=$maxreq}}
{{include file="field_input.tpl" field=$cntunkmail}}
+</div>
<div id="settings-default-perms" class="settings-default-perms" >
<a href="#profile-jot-acl-wrapper" id="settings-default-perms-menu" >{{$permissions}} {{$permdesc}}</a>
@@ -77,7 +89,7 @@
<div class="settings-submit-wrapper" >
-<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
+<input type="submit" name="submit" class="settings-submit" value="{{$submit}}"{{if !$expert}} onclick="$('select').prop('disabled', false);"{{/if}} />
</div>
@@ -108,7 +120,7 @@
</div>
<div class="settings-submit-wrapper" >
-<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
+<input type="submit" name="submit" class="settings-submit" value="{{$submit}}"{{if !$expert}} onclick="$('select').prop('disabled', false);"{{/if}} />
</div>
</div>