From 661f41e197779ac48e9f37f201080504962c8bed Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 22 Mar 2013 17:54:12 +0100 Subject: 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 --- install/ui/src/freeipa/service.js | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'install/ui/src/freeipa/service.js') diff --git a/install/ui/src/freeipa/service.js b/install/ui/src/freeipa/service.js index c38cfef1b..62c025340 100644 --- a/install/ui/src/freeipa/service.js +++ b/install/ui/src/freeipa/service.js @@ -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 {}; -}); \ No newline at end of file +}); -- cgit