Added Web UI support for service PAC type option: NONE

ipakrbauthzdata accepts [null, 'NONE', 'MS-PAC, 'PAD']

New nesting feature of radios/checkboxes was used to handle mutual exclusivity between
 ['MS-PAC', 'PAD'], 'NONE' and ''.

https://fedorahosted.org/freeipa/ticket/3404
This commit is contained in:
Petr Vobornik
2013-03-22 17:54:12 +01:00
parent 04325fbb4c
commit 661f41e197
3 changed files with 39 additions and 3 deletions

View File

@@ -71,8 +71,32 @@ IPA.service.entity = function(spec) {
},
{
name: 'ipakrbauthzdata',
type: 'checkboxes',
options: IPA.create_options(['MS-PAC', 'PAD'])
type: 'radio',
layout: 'vertical',
options: [
{
label: IPA.messages.krbauthzdata.inherited,
value: ''
},
{
label: IPA.messages.krbauthzdata.override,
name: 'ipakrbauthzdata_override',
factory: IPA.option_widget_base,
input_type: 'checkbox',
value: 'NONE',
combine_values: false,
options: [
{
label: IPA.messages.krbauthzdata.mspac,
value: 'MS-PAC'
},
{
label: IPA.messages.krbauthzdata.pad,
value: 'PAD'
}
]
}
]
}
]
},
@@ -483,4 +507,4 @@ IPA.service.certificate_policy = function(spec) {
IPA.register('service', IPA.service.entity);
return {};
});
});

View File

@@ -131,6 +131,12 @@
"search": "Search"
},
"false": "False",
"krbauthzdata": {
"inherited": "Inherited from server configuration",
"mspac": "MS-PAC",
"override": "Override inherited settings",
"pad": "PAD"
},
"login": {
"form_auth": "To login with username and password, enter them in the fields below then click Login.",
"header": "Logged In As",

View File

@@ -266,6 +266,12 @@ class i18n_messages(Command):
"search": _("Search"),
},
"false": _("False"),
"krbauthzdata": {
"inherited": _("Inherited from server configuration"),
"mspac": _("MS-PAC"),
"override": _("Override inherited settings"),
"pad": _("PAD"),
},
"login": {
"form_auth": _("To login with username and password, enter them in the fields below then click Login."),
"header": _("Logged In As"),