summaryrefslogtreecommitdiffstats
path: root/doc/guide/netgroup.js
diff options
context:
space:
mode:
Diffstat (limited to 'doc/guide/netgroup.js')
-rw-r--r--doc/guide/netgroup.js62
1 files changed, 62 insertions, 0 deletions
diff --git a/doc/guide/netgroup.js b/doc/guide/netgroup.js
new file mode 100644
index 000000000..7f79bf84d
--- /dev/null
+++ b/doc/guide/netgroup.js
@@ -0,0 +1,62 @@
+IPA.netgroup = {};
+
+IPA.netgroup.entity = function(spec) {
+ var that = IPA.entity(spec);
+ that.init = function(params) {
+ params.builder.search_facet({
+ columns: [
+ 'cn',
+ 'description'
+ ]
+ }).
+ details_facet({
+ sections: [
+ {
+ name: 'identity',
+ fields: [
+ 'cn',
+ {
+ factory: IPA.textarea_widget,
+ name: 'description'
+ },
+ 'nisdomainname'
+ ]
+ }
+ ]
+ }).
+ association_facet({
+ name: 'memberhost_host',
+ facet_group: 'member'
+ }).
+ association_facet({
+ name: 'memberhost_hostgroup',
+ facet_group: 'member'
+ }).
+ association_facet({
+ name: 'memberuser_user',
+ facet_group: 'member'
+ }).
+ association_facet({
+ name: 'memberuser_group',
+ facet_group: 'member'
+ }).
+ association_facet({
+ name: 'memberof_netgroup',
+ associator: IPA.serial_associator
+ }).
+ standard_association_facets().
+ adder_dialog({
+ fields: [
+ 'cn',
+ {
+ factory: IPA.textarea_widget,
+ name: 'description'
+ }
+ ]
+ });
+ };
+
+ return that;
+};
+
+IPA.register('netgroup', IPA.netgroup.entity);