From 2b322a46a600f2b0948b8a1b41ee394ffcf8df5e Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 16 Sep 2011 18:21:41 -0500 Subject: Replaced description text fields with text areas. Ticket #1783 --- install/ui/hbac.js | 68 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 54 insertions(+), 14 deletions(-) (limited to 'install/ui/hbac.js') diff --git a/install/ui/hbac.js b/install/ui/hbac.js index 32b2202f..f4f262c8 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -47,11 +47,26 @@ IPA.entity_factories.hbacsvc = function() { return IPA.entity_builder(). entity('hbacsvc'). search_facet({ - columns:['cn','description']}). - details_facet({sections:[{ - name: 'general', - label: IPA.messages.details.general, - fields:[ 'cn', 'description']}]}). + columns: [ + 'cn', + 'description' + ] + }). + details_facet({ + sections: [ + { + name: 'general', + label: IPA.messages.details.general, + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] + } + ] + }). association_facet({ name: 'memberof_hbacsvcgroup', associator: IPA.serial_associator, @@ -77,7 +92,13 @@ IPA.entity_factories.hbacsvc = function() { }). standard_association_facets(). adder_dialog({ - fields:['cn','description'] + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] }). build(); }; @@ -87,13 +108,26 @@ IPA.entity_factories.hbacsvcgroup = function() { return IPA.entity_builder(). entity('hbacsvcgroup'). search_facet({ - columns:['cn', 'description']}). - details_facet({sections:[ - { - name: 'general', - label: IPA.messages.details.general, - fields:['cn','description'] - }]}). + columns: [ + 'cn', + 'description' + ] + }). + details_facet({ + sections: [ + { + name: 'general', + label: IPA.messages.details.general, + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] + } + ] + }). association_facet({ name: 'member_hbacsvc', columns:[ @@ -118,7 +152,13 @@ IPA.entity_factories.hbacsvcgroup = function() { }). standard_association_facets(). adder_dialog({ - fields:['cn', 'description'] + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] }). build(); }; -- cgit