indicate locked features
This commit is contained in:
parent
8febcc2705
commit
7dadf387e5
@ -6,7 +6,7 @@ namespace Zotlabs\Module\Settings;
|
|||||||
class Directory {
|
class Directory {
|
||||||
|
|
||||||
function post() {
|
function post() {
|
||||||
|
|
||||||
$module = substr(strrchr(strtolower(static::class), '\\'), 1);
|
$module = substr(strrchr(strtolower(static::class), '\\'), 1);
|
||||||
|
|
||||||
check_form_security_token_redirectOnErr('/settings/' . $module, 'settings_' . $module);
|
check_form_security_token_redirectOnErr('/settings/' . $module, 'settings_' . $module);
|
||||||
|
@ -47,7 +47,7 @@ function feature_level($feature,$def) {
|
|||||||
function process_module_features_get($uid, $features) {
|
function process_module_features_get($uid, $features) {
|
||||||
unset($features[0]);
|
unset($features[0]);
|
||||||
foreach($features as $f) {
|
foreach($features as $f) {
|
||||||
$arr[] = array('feature_' . $f[0],$f[1],((intval(feature_enabled($uid, $f[0]))) ? "1" : ''),$f[2],array(t('Off'),t('On')));
|
$arr[] = array('feature_' . $f[0],$f[1],((intval(feature_enabled($uid, $f[0]))) ? "1" : ''),$f[2], array(t('Off'),t('On')), (($f[4] === false) ? '' : 'disabled'));
|
||||||
}
|
}
|
||||||
return $arr;
|
return $arr;
|
||||||
}
|
}
|
||||||
|
@ -1677,11 +1677,9 @@ dl.bb-dl > dd > li {
|
|||||||
|
|
||||||
|
|
||||||
.form-group.checkbox > div > input:disabled + label .onoffswitch-switch {
|
.form-group.checkbox > div > input:disabled + label .onoffswitch-switch {
|
||||||
background-color: red;
|
background-color: red;
|
||||||
border-radius: 3px;
|
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
filter:alpha(opacity=30);
|
filter:alpha(opacity=30);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user