summaryrefslogtreecommitdiffstats
path: root/install/ui/hostgroup.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/hostgroup.js')
-rw-r--r--install/ui/hostgroup.js50
1 files changed, 25 insertions, 25 deletions
diff --git a/install/ui/hostgroup.js b/install/ui/hostgroup.js
index b7d3e8d3..9c66ff61 100644
--- a/install/ui/hostgroup.js
+++ b/install/ui/hostgroup.js
@@ -23,41 +23,41 @@
/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
-IPA.entity_factories.hostgroup = function() {
+IPA.entity_factories.hostgroup = function() {
+
var that = IPA.entity({
'name': 'hostgroup'
});
- that.init = function() {
- var search_facet = IPA.search_facet({
- name: 'search',
- label: 'Search',
- entity_name: that.name
- });
- search_facet.create_column({name:'cn'});
- search_facet.create_column({name:'description'});
- that.add_facet(search_facet);
- that.add_facet(function() {
- var that = IPA.details_facet({name:'details'});
- that.add_section(
- IPA.stanza({name:'identity', label:'Hostgroup Settings'}).
- input({name:'cn'}).
- input({name: 'description'}));
- return that;
- }());
+ that.init = function() {
+ that.facet(
+ IPA.search_facet({
+ name: 'search',
+ label: 'Search',
+ entity_name: that.name
+ }).
+ column({name:'cn'}).
+ column({name:'description'}).
+ dialog(
+ IPA.add_dialog({
+ name: 'add',
+ title: 'Add Hostgroup'
+ }).
+ field(IPA.text_widget({name: 'cn', undo: false})).
+ field(IPA.text_widget({name: 'description', undo: false}))));
- var dialog = IPA.add_dialog({
- name: 'add',
- title: 'Add Hostgroup'
- });
- that.add_dialog(dialog);
+ that.facet(
+ IPA.details_facet({name:'details'}).
+ section(
+ IPA.stanza({name:'identity', label:'Hostgroup Settings'}).
+ input({name:'cn'}).
+ input({name: 'description'})));
- dialog.add_field(IPA.text_widget({name: 'cn', undo: false}));
- dialog.add_field(IPA.text_widget({name: 'description', undo: false}));
that.create_association_facets();
that.entity_init();
};
+
return that;
};