From 7bf94fab0021147ad8c4e99ec35b5e6362fda8d9 Mon Sep 17 00:00:00 2001 From: charithag Date: Thu, 6 Aug 2015 18:15:38 +0530 Subject: [PATCH] Add grouping functionality to device listing --- .../iotserver/units/appbar/appbar.js | 6 + .../units/device-listing/device-listing.hbs | 230 ++++++++++++- .../public/js/device-listing.js | 302 +++++++++++++++++- .../public/templates/group-listing.hbs | 59 +++- 4 files changed, 579 insertions(+), 18 deletions(-) diff --git a/modules/distribution/src/repository/jaggeryapps/iotserver/units/appbar/appbar.js b/modules/distribution/src/repository/jaggeryapps/iotserver/units/appbar/appbar.js index 0b748a52..96b64f64 100644 --- a/modules/distribution/src/repository/jaggeryapps/iotserver/units/appbar/appbar.js +++ b/modules/distribution/src/repository/jaggeryapps/iotserver/units/appbar/appbar.js @@ -86,6 +86,12 @@ function onRequest(context) { icon: "fw-add", url: "/iotserver/devices/add-device" }); + links["device-mgt"].push({ + title: "Add Group", + icon: "fw-add", + url: "#", + class: "add-group-link" + }); } if (permissions.ADD_DEVICE) { links["group-mgt"].push({ diff --git a/modules/distribution/src/repository/jaggeryapps/iotserver/units/device-listing/device-listing.hbs b/modules/distribution/src/repository/jaggeryapps/iotserver/units/device-listing/device-listing.hbs index dff6f92e..52a4c2c5 100644 --- a/modules/distribution/src/repository/jaggeryapps/iotserver/units/device-listing/device-listing.hbs +++ b/modules/distribution/src/repository/jaggeryapps/iotserver/units/device-listing/device-listing.hbs @@ -2,7 +2,7 @@ -
+
@@ -232,6 +232,234 @@
+ +
+
+
+
+

Select user to manage group sharing

+
Loading...
+ +
+
+
+
+ +
+
+
+
+

Select sharing roles

+
+
Loading...
+ +
+
+
+
+ +
+
+
+
+

Group sharing updated successfully.

+
+
+
+
+ +
+
+
+
+

Do you really want to remove this group from your Group List?

+ + +
+
+
+
+ +
+
+
+
+

Group was successfully removed.

+
+
+
+
+ +
+
+
+
+

Please enter name and description for new group

+
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+ +
+
+
+
+

Group successfully added.

+
+
+
+
+ +
+
+
+
+

Please enter new name and description for the group

+
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+ +
+
+
+
+

Group was successfully updated.

+
+
+
+
+ +
+
+
+
+

Exception at backend. Try Later.

+ + +
+
+
+
+ +
+
+
+
+

Action not permitted.

+ + +
+
+
+
+ +
+
+
+
+

Group does not exist.

+ + +
+
+
+
+ +
+
+
+
+

Group does not exist.

+ + +
+
+
+
+ {{/zone}} {{#zone "bottomJs"}}