summaryrefslogtreecommitdiffstats
path: root/install/static/group.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/group.js')
-rw-r--r--install/static/group.js44
1 files changed, 44 insertions, 0 deletions
diff --git a/install/static/group.js b/install/static/group.js
index 113c1f12..02940b6c 100644
--- a/install/static/group.js
+++ b/install/static/group.js
@@ -24,6 +24,7 @@ ipa_entity_set_search_definition('group', [
['cn', 'Name', null],
['gidnumber', 'GID', null],
['description', 'Description', null],
+ ['quick_links', 'Quick Links', group_render_quick_links]
]);
ipa_entity_set_add_definition('group', [
@@ -64,3 +65,46 @@ function f_posix(dlg, mode)
}
}
+function group_render_quick_links(tr, attr, value, entry_attrs) {
+
+ var td = $("<td/>");
+ tr.append(td);
+
+ $("<a/>", {
+ href: "jslink",
+ html: "[D]",
+ click: function() {
+ var state = {};
+ state['group-facet'] = 'details';
+ state['group-pkey'] = entry_attrs['cn'][0];
+ $.bbq.pushState(state);
+ return false;
+ }
+ }).appendTo(td);
+
+ $("<a/>", {
+ href: "jslink",
+ html: "[U]",
+ click: function() {
+ var state = {};
+ state['group-facet'] = 'associate';
+ state['group-enroll'] = 'user';
+ state['group-pkey'] = entry_attrs['cn'][0];
+ $.bbq.pushState(state);
+ return false;
+ }
+ }).appendTo(td);
+
+ $("<a/>", {
+ href: "jslink",
+ html: "[N]",
+ click: function() {
+ var state = {};
+ state['group-facet'] = 'associate';
+ state['group-enroll'] = 'netgroup';
+ state['group-pkey'] = entry_attrs['cn'][0];
+ $.bbq.pushState(state);
+ return false;
+ }
+ }).appendTo(td);
+}