Ticket #1783 -- Endi S. Dewata
From 252d019c46f243bafb801a137d2ba9aa81704d1e Mon Sep 17 00:00:00 2001 From: Endi S. Dewata <edew...@redhat.com> Date: Fri, 16 Sep 2011 18:21:41 -0500 Subject: [PATCH] Replaced description text fields with text areas.
Ticket #1783 --- install/ui/aci.js | 70 +++++++++++++++++++++++++++++++++--------- install/ui/automount.js | 9 +++++- install/ui/group.js | 35 ++++++++++++++++----- install/ui/hbac.js | 70 +++++++++++++++++++++++++++++++++-------- install/ui/host.js | 5 ++- install/ui/hostgroup.js | 36 +++++++++++++++++---- install/ui/netgroup.js | 30 ++++++++++++------ install/ui/sudo.js | 78 +++++++++++++++++++++++++++++++++++------------ 8 files changed, 257 insertions(+), 76 deletions(-) diff --git a/install/ui/aci.js b/install/ui/aci.js index 13fbc7d139e5ef69f6974b9b4d32b160a2eeebc5..357e65c47ca5089e5058af69c135ac0f2ab3d4fc 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -97,14 +97,26 @@ IPA.entity_factories.privilege = function() { entity('privilege'). facet_groups([ 'role', 'settings', 'permission' ]). search_facet({ - columns:['cn','description']}). + columns: [ + 'cn', + 'description' + ] + }). details_facet({ - sections: - [{ - name:'identity', - label: IPA.messages.details.identity, - fields:['cn','description'] - }]}). + sections: [ + { + name: 'identity', + label: IPA.messages.details.identity, + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] + } + ] + }). association_facet({ name: 'member_role', facet_group: 'role', @@ -120,7 +132,14 @@ IPA.entity_factories.privilege = function() { }). standard_association_facets(). adder_dialog({ - fields:['cn', 'description'] + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description', + undo: false + } + ] }). build(); @@ -132,12 +151,26 @@ IPA.entity_factories.role = function() { entity('role'). facet_groups([ 'member', 'settings', 'privilege' ]). search_facet({ - columns:['cn','description']}). - details_facet({sections:[ - { - name:'identity', - label:IPA.messages.objects.role.identity, - fields:['cn','description']}]}). + columns: [ + 'cn', + 'description' + ] + }). + details_facet({ + sections: [ + { + name: 'identity', + label: IPA.messages.objects.role.identity, + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] + } + ] + }). association_facet({ name: 'memberof_privilege', facet_group: 'privilege', @@ -146,7 +179,14 @@ IPA.entity_factories.role = function() { }). standard_association_facets(). adder_dialog({ - fields:['cn', 'description'] + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description', + undo: false + } + ] }). build(); }; diff --git a/install/ui/automount.js b/install/ui/automount.js index 8be2b65747fbb8d936b34ece919c9b76dc056e45..e47a920ee78770363689d09710d39d2614320db8 100644 --- a/install/ui/automount.js +++ b/install/ui/automount.js @@ -81,7 +81,13 @@ IPA.entity_factories.automountmap = function() { { name: 'identity', label: IPA.messages.details.identity, - fields: [ 'automountmapname', 'description' ] + fields: [ + 'automountmapname', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] } ] }). @@ -112,6 +118,7 @@ IPA.entity_factories.automountmap = function() { undo: false }, { + factory: IPA.textarea_widget, name: 'description', undo: false } diff --git a/install/ui/group.js b/install/ui/group.js index a2ba080fd320cbbae323c0bbdfa1e646979d057e..da08a8cea4202d26da5022c2a05193122da35693 100644 --- a/install/ui/group.js +++ b/install/ui/group.js @@ -29,13 +29,27 @@ IPA.entity_factories.group = function () { return IPA.entity_builder(). entity('group'). search_facet({ - columns:['cn','gidnumber','description'] + columns: [ + 'cn', + 'gidnumber', + 'description' + ] + }). + details_facet({ + sections: [ + { + name: 'details', + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + }, + 'gidnumber' + ] + } + ] }). - details_facet({sections: - [{ - name:'details', - fields:['cn','description','gidnumber'] - }]}). association_facet({ name: 'member_user', columns:[ @@ -90,7 +104,11 @@ IPA.entity_factories.group = function () { adder_dialog({ fields: [ 'cn', - 'description', + { + factory: IPA.textarea_widget, + name: 'description', + undo: false + }, { factory: IPA.group_nonposix_checkbox_widget, name: 'nonposix', @@ -99,7 +117,8 @@ IPA.entity_factories.group = function () { checked: true, param_info: IPA.get_method_option('group_add', 'nonposix') }, - 'gidnumber'] + 'gidnumber' + ] }). build(); }; diff --git a/install/ui/hbac.js b/install/ui/hbac.js index 32b2202fa4c50d9e7fe70756c760abcf4e2d87d5..6a2d84c3eee6632e4fa6eea42dba6f0f0f82618e 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,14 @@ IPA.entity_factories.hbacsvc = function() { }). standard_association_facets(). adder_dialog({ - fields:['cn','description'] + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description', + undo: false + } + ] }). build(); }; @@ -87,13 +109,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 +153,14 @@ IPA.entity_factories.hbacsvcgroup = function() { }). standard_association_facets(). adder_dialog({ - fields:['cn', 'description'] + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description', + undo: false + } + ] }). build(); }; diff --git a/install/ui/host.js b/install/ui/host.js index 5fbeebe31c0d7bb8db579174a626100541092681..af06f1615420c11f6808e210563663fb20926848 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -50,7 +50,10 @@ IPA.entity_factories.host = function () { other_entity: 'dnsrecord' }, 'krbprincipalname', - 'description', + { + factory: IPA.textarea_widget, + name: 'description' + }, 'l', 'nshostlocation', 'nshardwareplatform', diff --git a/install/ui/hostgroup.js b/install/ui/hostgroup.js index 45420340f9fce06297fc54a952ffb8bf95de6c23..eabdb122e6de88c487cd3ad6ca2d285e8021ca58 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,14 @@ IPA.entity_factories.hostgroup = function() { }). standard_association_facets(). adder_dialog({ - fields:['cn','description'] + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description', + undo: false + } + ] }). build(); }; diff --git a/install/ui/netgroup.js b/install/ui/netgroup.js index 2136f926c7c1db5690c43dcb4bd14f107f8b766c..73e3e409b56115e2536274f3b76c79c61480f605 100644 --- a/install/ui/netgroup.js +++ b/install/ui/netgroup.js @@ -27,19 +27,25 @@ IPA.entity_factories.netgroup = function() { return IPA.entity_builder(). entity('netgroup'). search_facet({ - columns:[ + columns: [ 'cn', 'description' ] }). details_facet({ - sections:[{ - name:'identity', - fields:[ - 'cn', - 'description', - 'nisdomainname'] - }] + sections: [ + { + name: 'identity', + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + }, + 'nisdomainname' + ] + } + ] }). association_facet({ name: 'memberhost_host', @@ -63,9 +69,13 @@ IPA.entity_factories.netgroup = function() { }). standard_association_facets(). adder_dialog({ - fields:[ + fields: [ 'cn', - 'description' + { + factory: IPA.textarea_widget, + name: 'description', + undo: false + } ] }). build(); diff --git a/install/ui/sudo.js b/install/ui/sudo.js index cdd5e50af6437e014a0957f07cd1d3e27b239443..624b8c850b3ef17835dbb0fa2881f5ded8f659cf 100644 --- a/install/ui/sudo.js +++ b/install/ui/sudo.js @@ -46,15 +46,28 @@ IPA.entity_factories.sudorule = function() { IPA.entity_factories.sudocmd = function() { return IPA.entity_builder(). - entity( 'sudocmd'). + entity('sudocmd'). search_facet({ - columns:['sudocmd','description']}). - details_facet({sections:[ - { - name: 'general', - label: IPA.messages.details.general, - fields:['sudocmd','description'] - }]}). + columns: [ + 'sudocmd', + 'description' + ] + }). + details_facet({ + sections: [ + { + name: 'general', + label: IPA.messages.details.general, + fields: [ + 'sudocmd', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] + } + ] + }). association_facet({ name: 'memberof_sudocmdgroup', associator: IPA.serial_associator, @@ -66,7 +79,7 @@ IPA.entity_factories.sudocmd = function() { }, { name: 'description' } ], - adder_columns:[ + adder_columns: [ { name: 'cn', primary_key: true, @@ -80,7 +93,14 @@ IPA.entity_factories.sudocmd = function() { }). standard_association_facets(). adder_dialog({ - fields:['sudocmd','description'] + fields: [ + 'sudocmd', + { + factory: IPA.textarea_widget, + name: 'description', + undo: false + } + ] }). build(); @@ -90,18 +110,29 @@ IPA.entity_factories.sudocmdgroup = function() { return IPA.entity_builder(). entity('sudocmdgroup'). search_facet({ - columns:['cn','description'] + columns: [ + 'cn', + 'description' + ] + }). + details_facet({ + sections: [ + { + name: 'general', + label: IPA.messages.details.general, + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description' + } + ] + } + ] }). - details_facet({sections:[ - { - - name: 'general', - label: IPA.messages.details.general, - fields:['cn','description'] - }]}). association_facet({ name: 'member_sudocmd', - columns:[ + columns: [ { name: 'sudocmd', primary_key: true, @@ -123,7 +154,14 @@ IPA.entity_factories.sudocmdgroup = function() { }). standard_association_facets(). adder_dialog({ - fields:['cn','description'] + fields: [ + 'cn', + { + factory: IPA.textarea_widget, + name: 'description', + undo: false + } + ] }). build(); }; -- 1.7.5.1
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel