mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
posix checked check box for posix groups selected by default
This commit is contained in:
parent
0fc1d260c0
commit
553e08afa6
@ -83,7 +83,11 @@ function ipa_group_add_dialog(spec) {
|
||||
that.add_field(ipa_text_widget({name:'cn', undo: false}));
|
||||
that.add_field(ipa_text_widget({name:'description', undo: false}));
|
||||
// TODO: Replace with i18n label
|
||||
that.add_field(ipa_checkbox_widget({name:'posix', label:'Is this a POSIX group?', undo: false}));
|
||||
that.add_field(ipa_checkbox_widget({
|
||||
name:'posix',
|
||||
label:'Is this a POSIX group?',
|
||||
undo: false,
|
||||
checked:'checked'}));
|
||||
that.add_field(ipa_text_widget({name:'gidnumber', undo: false}));
|
||||
|
||||
that.add_dialog_init();
|
||||
|
@ -205,14 +205,15 @@ function ipa_text_widget(spec) {
|
||||
function ipa_checkbox_widget(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
var is_checked = spec.checked || '';
|
||||
var that = ipa_widget(spec);
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
$('<input/>', {
|
||||
'type': 'checkbox',
|
||||
'name': that.name
|
||||
type: 'checkbox',
|
||||
name: that.name,
|
||||
checked : is_checked
|
||||
}).appendTo(container);
|
||||
|
||||
if (that.undo) {
|
||||
|
Loading…
Reference in New Issue
Block a user