summaryrefslogtreecommitdiffstats
path: root/install/ui/group.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-02-08 15:41:24 -0600
committerAdam Young <ayoung@redhat.com>2011-02-09 19:46:49 -0500
commit8d597dcbb03ca70a342f470e0229c9934f75cb16 (patch)
tree7311deb7976b677efba19d864e893d8406aebd0f /install/ui/group.js
parent25abf07360ea6824f3584edd847e080e6fdca981 (diff)
downloadfreeipa-8d597dcbb03ca70a342f470e0229c9934f75cb16.tar.gz
freeipa-8d597dcbb03ca70a342f470e0229c9934f75cb16.tar.xz
freeipa-8d597dcbb03ca70a342f470e0229c9934f75cb16.zip
Moved add dialog into search facet.
Previously the add dialog is added into entity. The dialog is only used by the search facet, so it's now moved into the search facet.
Diffstat (limited to 'install/ui/group.js')
-rw-r--r--install/ui/group.js59
1 files changed, 31 insertions, 28 deletions
diff --git a/install/ui/group.js b/install/ui/group.js
index 0188031f..f7e7e51f 100644
--- a/install/ui/group.js
+++ b/install/ui/group.js
@@ -29,21 +29,38 @@ IPA.entity_factories.group = function () {
return IPA.entity({
'name': 'group'
}).
- facet(IPA.search_facet().
- column({name:'cn'}).
- column({name:'gidnumber'}).
- column({name:'description'})).
facet(
- IPA.details_facet().section(
- IPA.stanza({label: 'Group Settings' }).
- input({name: 'cn' }).
- input({name: 'description'}).
- input({name: 'gidnumber' }))).
- facet( IPA.group_member_user_facet({
- 'name': 'member_user',
- 'label': 'Users',
- 'other_entity': 'user'
- })).
+ IPA.search_facet().
+ column({name: 'cn'}).
+ column({name: 'gidnumber'}).
+ column({name: 'description'}).
+ dialog(
+ IPA.add_dialog({
+ 'name': 'add',
+ 'title': 'Add New Group'
+ }).
+ field(IPA.text_widget({name: 'cn', undo: false})).
+ field(IPA.text_widget({name: 'description', undo: false})).
+ // TODO: Replace with i18n label
+ field(IPA.checkbox_widget({
+ name: 'posix',
+ label: 'Is this a POSIX group?',
+ undo: false,
+ checked: 'checked'})).
+ field(IPA.text_widget({name: 'gidnumber', undo: false})))).
+ facet(
+ IPA.details_facet().
+ section(
+ IPA.stanza({label: 'Group Settings' }).
+ input({name: 'cn' }).
+ input({name: 'description'}).
+ input({name: 'gidnumber' }))).
+ facet(
+ IPA.group_member_user_facet({
+ 'name': 'member_user',
+ 'label': 'Users',
+ 'other_entity': 'user'
+ })).
association({
name: 'netgroup',
associator: 'serial'
@@ -56,20 +73,6 @@ IPA.entity_factories.group = function () {
name: 'taskgroup',
associator: 'serial'
}).
- add_dialog(
- IPA.add_dialog({
- 'name': 'add',
- 'title': 'Add New Group'
- }).
- field(IPA.text_widget({name:'cn', undo: false})).
- field(IPA.text_widget({name:'description', undo: false})).
- // TODO: Replace with i18n label
- field(IPA.checkbox_widget({
- name:'posix',
- label:'Is this a POSIX group?',
- undo: false,
- checked:'checked'})).
- field(IPA.text_widget({name:'gidnumber', undo: false}))).
standard_associations();
};