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/hostgroup.js | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) (limited to 'install/ui/hostgroup.js') diff --git a/install/ui/hostgroup.js b/install/ui/hostgroup.js index 45420340f..ef669960c 100644 --- a/install/ui/hostgroup.js +++ b/install/ui/hostgroup.js @@ -27,12 +27,27 @@ IPA.entity_factories.hostgroup = function() { return IPA.entity_builder(). entity('hostgroup'). - search_facet({columns:['cn','description']}). - details_facet({sections:[{ - name:'identity', - label: IPA.messages.objects.hostgroup.identity, - fields:['cn','description'] - }]}). + search_facet({ + columns: [ + 'cn', + 'description' + ] + }). + details_facet({ + sections: [ + { + name: 'identity', + label: IPA.messages.objects.hostgroup.identity, + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] + } + ] + }). association_facet({ name: 'memberof_hostgroup', associator: IPA.serial_associator @@ -55,7 +70,13 @@ IPA.entity_factories.hostgroup = function() { }). standard_association_facets(). adder_dialog({ - fields:['cn','description'] + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] }). build(); }; -- cgit