@@ -157,34 +152,41 @@
{{else}}
-
You don't have any device
+
+
+
+
+ You don't have any device
{{#if groupName}}
- assigned to this group
+ assigned to this group
{{else}}
- registered
+ enrolled
{{/if}}
- at the moment.
-
-
-
+ at the moment.
+
+
{{/if}}
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.groups/groups.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.groups/groups.hbs
index 2c32a1227a..5aeca7d38c 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.groups/groups.hbs
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.groups/groups.hbs
@@ -79,18 +79,21 @@
{{else}}
-
You don't have any group registered at the moment.
-
+
+
+
+
You don't have any group registered at the moment
{{#if permissions.ADD_GROUP}}
-
-
+
+
{{/if}}
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js
index bcbbbae3f9..411eecc39f 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js
@@ -151,22 +151,26 @@ $.fn.datatables_extended = function(settings){
}
function getAdvanceToolBar(){
- if(table.hasClass('sorting-enabled')){
- return '
' +
- 'Select ' +
- 'Select All ' +
- ' ' +
- ' ' +
- ' ' + dropdownmenu[0].outerHTML + ' ' +
- ' '
+ if (!table.hasClass('no-toolbar')) {
+ if (table.hasClass('sorting-enabled')) {
+ return '
' +
+ 'Select ' +
+ 'Select All ' +
+ ' ' +
+ ' ' +
+ ' ' + dropdownmenu[0].outerHTML + ' ' +
+ ' '
+ } else {
+ return '
' +
+ 'Select ' +
+ 'Select All ' +
+ ' ' +
+ ' ' +
+ ' '
+ }
}else{
- return '
' +
- 'Select ' +
- 'Select All ' +
- ' ' +
- ' ' +
- ' '
- };
+ return '';
+ }
}
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/listing.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/listing.hbs
index 08aae161eb..095a701dd5 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/listing.hbs
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/listing.hbs
@@ -15,38 +15,33 @@
specific language governing permissions and limitations
under the License.
}}
+
+
+
-
-
+
-
{{#if virtualDeviceTypesList}}
- Virtual Devices
+ Virtual Device Types
Don't have a device?
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/public/js/listing.js
index 269f503a52..1fbbe479c2 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/public/js/listing.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.types.listing/public/js/listing.js
@@ -141,7 +141,7 @@ function loadDevices(searchType, searchParam){
compileTemplate(viewModel, deviceListingSrc);
}
} else {
- $('#device-grid').addClass('hidden');
+ $('#device-type-grid').addClass('hidden');
$('#device-listing-status-msg').html(
' ' +
'No device type is available to be displayed. ' +
@@ -167,7 +167,7 @@ function compileTemplate(viewModel, templateSrc){
$("#ast-container").html($("#ast-container").html() + template(viewModel));
compiledDeviceTypesCount++;
if(deviceTypeCount == compiledDeviceTypesCount){
- $('#device-grid').datatables_extended({"bFilter": true, "order": [[ 1, "asc" ]]});
+ $('#device-type-grid').datatables_extended({"bFilter": false, "order": [[ 1, "asc" ]]});
}
});
}
@@ -194,7 +194,7 @@ function openCollapsedNav(){
*/
$(document).ready(function () {
loadDevices();
- //$('#device-grid').datatables_extended();
+ //$('#device-type-grid').datatables_extended();
/* Adding selected class for selected devices */
$(deviceCheckbox).each(function () {
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs
index 0a6a7d5b7e..e19fb188be 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/nav-menu.hbs
@@ -22,14 +22,6 @@
{{/zone}}
{{#zone "navMenu-items"}}
- {{#if permissions.VIEW_DASHBOARD}}
-
-
-
- Admin Dashboard
-
-
- {{/if}}
{{#if permissions.LIST_OWN_DEVICES}}
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/app/units/uuf.unit.theme/public/lib/theme-wso2_1.0/js/theme-wso2.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/app/units/uuf.unit.theme/public/lib/theme-wso2_1.0/js/theme-wso2.js
index 6a68457693..13f6bbcad0 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/app/units/uuf.unit.theme/public/lib/theme-wso2_1.0/js/theme-wso2.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/uuf-template-app/app/units/uuf.unit.theme/public/lib/theme-wso2_1.0/js/theme-wso2.js
@@ -309,14 +309,34 @@ var responsiveTextRatio = 0.2,
}
});
- //Append advance operations to list table toolbar
- $('.dataTable.list-table').closest('.dataTables_wrapper').find('.dataTablesTop .dataTables_toolbar').html('' +
- '' +
- 'Select All ' +
- ' ' +
- ' ' +
- ' '+dropdownmenu[0].outerHTML+' ' +
- ' '
+ function getAdvanceToolBar() {
+ if (!table.hasClass('no-toolbar')) {
+ if (table.hasClass('sorting-enabled')) {
+ return '' +
+ 'Select ' +
+ 'Select All ' +
+ ' ' +
+ ' ' +
+ ' ' + dropdownmenu[0].outerHTML + ' ' +
+ ' '
+ } else {
+ return '' +
+ 'Select ' +
+ 'Select All ' +
+ ' ' +
+ ' ' +
+ ' '
+ }
+ } else {
+ return '';
+ }
+ }
+
+ /**
+ * append advance operations to list table toolbar
+ */
+ $('.dataTable.list-table').closest('.dataTables_wrapper').find('.dataTablesTop .dataTables_toolbar').html(
+ getAdvanceToolBar()
);
//Sorting dropdown menu select function
diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/email/templates/user-enrollment.vm b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/email/templates/user-enrollment.vm
new file mode 100644
index 0000000000..61cc9340d4
--- /dev/null
+++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/email/templates/user-enrollment.vm
@@ -0,0 +1,71 @@
+#*
+ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+
+ WSO2 Inc. licenses this file to you under the Apache License,
+ Version 2.0 (the "License"); you may not use this file except
+ in compliance with the License.
+ you may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+*#
+
+ You have been invited to enroll your devices in WSO2 IoT Server
+
+
+
+ WSO2 IoT Server
+
+
+
+
+
+
+
+
+
+
+
+ Hi $first-name,
+
+
+
+ You have been invited to enrol devices with WSO2 IoT Server.
+ Click here to enrol the WSO2 IoT Server devices to begin.
+
+
+ Should you need assistance, please contact your administrator.
+
+
+
+ Regards,
+
+
+
+ WSO2 IoT Server Administrator
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ]]>
+