diff --git a/mod/settings.php b/mod/settings.php index 506141a1f..ec758bc90 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -977,6 +977,8 @@ function settings_content(&$a) { '$h_advn' => t('Advanced Account/Page Type Settings'), '$h_descadvn' => t('Change the behaviour of this account for special situations'), '$pagetype' => $pagetype, + '$expert' => feature_enabled(local_user(),'expert'), + '$hint' => t('Please enable expert mode (in Settings > Additional features) to adjust!'), )); diff --git a/view/css/mod_settings.css b/view/css/mod_settings.css index 2049d9bc6..0d3dd36fe 100644 --- a/view/css/mod_settings.css +++ b/view/css/mod_settings.css @@ -1,20 +1,19 @@ -#settings-permissions-wrapper, #settings-perm-advanced { - opacity: 0.3; - filter:alpha(opacity=30); -} - -#settings-permissions-wrapper:hover, #settings-perm-advanced:hover { - opacity: 1.0; - filter:alpha(opacity=100); +#settings-permissions-wrapper { + margin-top: 15px; } #settings-perm-advanced { margin-top: 15px; } +.settings-common-perms { + margin-top: 15px; +} + #settings-permissions-wrapper .field { margin-bottom: 10px; } + #settings-permissions-wrapper .field label{ width: 350px; } @@ -28,8 +27,6 @@ margin-bottom: 45px; } - - #settings-notifications label { margin-left: 20px; } diff --git a/view/tpl/field_select_disabled.tpl b/view/tpl/field_select_disabled.tpl new file mode 100644 index 000000000..f0090cf98 --- /dev/null +++ b/view/tpl/field_select_disabled.tpl @@ -0,0 +1,7 @@ +
+ + + {{$field.3}} +
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}}
- +
@@ -34,20 +34,31 @@ -

{{$lbl_p2macro}}

+ + + + +
+{{if !$expert}} +
{{$hint}}
+{{/if}} -
{{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}} + +{{if $expert}} +
+ +
+{{/if}} +
- - -
- -
- - +
{{$profile_in_dir}} {{$suggestme}} @@ -55,6 +66,7 @@ {{include file="field_input.tpl" field=$maxreq}} {{include file="field_input.tpl" field=$cntunkmail}} +
{{$permissions}} {{$permdesc}} @@ -77,7 +89,7 @@
- +
@@ -108,7 +120,7 @@
- +