summaryrefslogtreecommitdiffstats
path: root/install/static/netgroup.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/netgroup.js')
-rw-r--r--install/static/netgroup.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/install/static/netgroup.js b/install/static/netgroup.js
new file mode 100644
index 00000000..0ff5eabf
--- /dev/null
+++ b/install/static/netgroup.js
@@ -0,0 +1,39 @@
+function setupNetgroup(facet){
+ if (facet == "details"){
+ setupNetgroupDetails();
+ }else{
+ setupNetgroupSearch();
+ }
+}
+
+
+
+
+function setupNetgroupDetails(){
+ var detailsForm = new DetailsForm();
+}
+
+
+function setupNetgroupSearch(){
+
+
+ var columns = [
+ {title:"Netgroup",column:"cn",render: function(current,cell){
+ renderDetailColumn(current,cell,current[this.column],"netgroup");
+ }},
+ {title:"Description", column:"description",render: renderSimpleColumn}];
+
+ var netgroupSearchForm = new SearchForm("netgroup", "find", columns);
+
+ $("#query").unbind();
+ $("#query").click(function(){
+ sampleData = "sampledata/netgrouplist.json";
+ executeSearch(netgroupSearchForm);
+ });
+ $("#new").unbind();
+ $("#new").click( function() {
+ alert("New Netgroup...");
+ });
+
+
+}