mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Updating emm policy create UI
This commit is contained in:
parent
3b2a914382
commit
6cf9dc1c67
@ -265,8 +265,8 @@
|
|||||||
data-next="policy-profile"
|
data-next="policy-profile"
|
||||||
data-platform="{{name}}"
|
data-platform="{{name}}"
|
||||||
data-validate="false">
|
data-validate="false">
|
||||||
<img src="{{icon}}" width="50px" height="50px" />
|
<!--<img src="{{icon}}" width="50px" height="50px" />-->
|
||||||
<br><br>
|
<i class="fw fw-{{deviceTypeIcon}}"></i>
|
||||||
<b>{{label}}</b>
|
<b>{{label}}</b>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@ -295,4 +295,3 @@
|
|||||||
type="text/x-handlebars-template"></script>
|
type="text/x-handlebars-template"></script>
|
||||||
{{js "/js/policy-create.js"}}
|
{{js "/js/policy-create.js"}}
|
||||||
{{/zone}}
|
{{/zone}}
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function onRequest() {
|
function onRequest() {
|
||||||
var log = new Log("/app/units/mdm.unit.policy.create");
|
// var log = new Log("/app/units/mdm.unit.policy.create");
|
||||||
|
|
||||||
var CONF_DEVICE_TYPE_KEY = "deviceType";
|
var CONF_DEVICE_TYPE_KEY = "deviceType";
|
||||||
var CONF_DEVICE_TYPE_LABEL_KEY = "label";
|
var CONF_DEVICE_TYPE_LABEL_KEY = "label";
|
||||||
@ -35,6 +35,11 @@ function onRequest() {
|
|||||||
var content = {};
|
var content = {};
|
||||||
var deviceType = deviceTypes[i];
|
var deviceType = deviceTypes[i];
|
||||||
content["name"] = deviceType;
|
content["name"] = deviceType;
|
||||||
|
if (deviceType == "ios") {
|
||||||
|
content["deviceTypeIcon"] = "apple";
|
||||||
|
} else {
|
||||||
|
content["deviceTypeIcon"] = deviceType;
|
||||||
|
}
|
||||||
var configs = utility.getDeviceTypeConfig(deviceType);
|
var configs = utility.getDeviceTypeConfig(deviceType);
|
||||||
var deviceTypeLabel = deviceType;
|
var deviceTypeLabel = deviceType;
|
||||||
if (configs && configs[CONF_DEVICE_TYPE_KEY][CONF_DEVICE_TYPE_LABEL_KEY]) {
|
if (configs && configs[CONF_DEVICE_TYPE_KEY][CONF_DEVICE_TYPE_LABEL_KEY]) {
|
||||||
@ -43,7 +48,7 @@ function onRequest() {
|
|||||||
var policyWizard = new File("/app/units/" + utility.getTenantedDeviceUnitName(deviceType, "policy-wizard"));
|
var policyWizard = new File("/app/units/" + utility.getTenantedDeviceUnitName(deviceType, "policy-wizard"));
|
||||||
|
|
||||||
if (policyWizard.isExists()) {
|
if (policyWizard.isExists()) {
|
||||||
content["icon"] = utility.getDeviceThumb(deviceType);
|
// content["icon"] = utility.getDeviceThumb(deviceType);
|
||||||
content["label"] = deviceTypeLabel;
|
content["label"] = deviceTypeLabel;
|
||||||
viewModelData["types"].push(content);
|
viewModelData["types"].push(content);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user