mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Add disabled field
This commit is contained in:
parent
afbac1ebcf
commit
d19c8e9f0b
2 changed files with 23 additions and 1 deletions
|
@ -54,6 +54,7 @@ $defaults['defaulttype'] = 'Master'; # Choose between 'Native
|
||||||
$defaults['ns'][0] = 'unconfigured.primaryns'; # The value of the first NS-record
|
$defaults['ns'][0] = 'unconfigured.primaryns'; # The value of the first NS-record
|
||||||
$defaults['ns'][1] = 'unconfigured.secondaryns'; # The value of the second NS-record
|
$defaults['ns'][1] = 'unconfigured.secondaryns'; # The value of the second NS-record
|
||||||
$defaults['ttl'] = 3600; # Default TTL for records
|
$defaults['ttl'] = 3600; # Default TTL for records
|
||||||
|
$defaults['disabled'] = false; # Default disabled state
|
||||||
|
|
||||||
## UI Options
|
## UI Options
|
||||||
$menutype = 'horizontal'; # horizontal|vertical - use a horizontal or vertical menu
|
$menutype = 'horizontal'; # horizontal|vertical - use a horizontal or vertical menu
|
||||||
|
|
23
index.php
23
index.php
|
@ -346,6 +346,12 @@ $(document).ready(function () {
|
||||||
width: '2%',
|
width: '2%',
|
||||||
display: displayContent('ttl'),
|
display: displayContent('ttl'),
|
||||||
listClass: 'ttl'
|
listClass: 'ttl'
|
||||||
|
},
|
||||||
|
disabled: {
|
||||||
|
title: 'Disabled',
|
||||||
|
width: '2%',
|
||||||
|
display: displayContent('disabled'),
|
||||||
|
listClass: 'disabled'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, function (data) {
|
}, function (data) {
|
||||||
|
@ -597,7 +603,22 @@ $(document).ready(function () {
|
||||||
defaultValue: '<?php echo $defaults['ttl']; ?>',
|
defaultValue: '<?php echo $defaults['ttl']; ?>',
|
||||||
inputClass: 'ttl',
|
inputClass: 'ttl',
|
||||||
listClass: 'ttl'
|
listClass: 'ttl'
|
||||||
}
|
},
|
||||||
|
disabled: {
|
||||||
|
title: 'Disabled',
|
||||||
|
width: '2%',
|
||||||
|
create: true,
|
||||||
|
display: displayContent('disabled'),
|
||||||
|
defaultValue: '<?php echo $defaults['disabled'] ? 'false' : 'true'; ?>',
|
||||||
|
inputClass: 'disabled',
|
||||||
|
listClass: 'disabled',
|
||||||
|
options: function() {
|
||||||
|
return {
|
||||||
|
'0': 'false',
|
||||||
|
'1': 'true',
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}, function (data) {
|
}, function (data) {
|
||||||
data.childTable.jtable('load');
|
data.childTable.jtable('load');
|
||||||
|
|
Loading…
Add table
Reference in a new issue