Add single mode app kiosk policy UI

revert-dabc3590
Saad Sahibjan 6 years ago
parent f02d09bb95
commit db6fde2922

@ -211,6 +211,10 @@ var androidOperationModule = function () {
payload["kioskLogoImage"] = deviceGlobalConfigurations["kioskLogoImage"];
payload["kioskAppName"] = deviceGlobalConfigurations["kioskAppName"];
payload["isSingleModeApp"] = deviceGlobalConfigurations["isSingleModeApp"];
if (payload["isSingleModeApp"] === true) {
payload["isSingleModeAppBuiltForKiosk"] =
deviceGlobalConfigurations["isSingleModeAppBuiltForKiosk"];
}
payload["isIdleGraphicsEnabled"] = deviceGlobalConfigurations["isIdleGraphicsEnabled"];
payload["idleTimeout"] = deviceGlobalConfigurations["idleTimeout"];
payload["isMultiUserDevice"] = deviceGlobalConfigurations["isMultiUserDevice"];
@ -515,6 +519,8 @@ var androidOperationModule = function () {
deviceGlobalConfigurations["singleModeApp"]
= $(selectedSingleModeAppElement + "[data-child-key='packageName']").val();
}
deviceGlobalConfigurations["isSingleModeAppBuiltForKiosk"] =
operationData["isSingleModeAppBuiltForKiosk"];
}
deviceGlobalConfigurations["isIdleGraphicsEnabled"] = operationData["isIdleGraphicsEnabled"];
if (operationData["idleTimeout"]) {

@ -1722,6 +1722,23 @@
class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent"/>
</div>
<!--COSU single mode application-->
<div id="cosu-profile-single-mode-app-configuration" class="panel">
<div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;">
Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span>
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp"
onchange="changeDivVisibility('single-mode-kiosk-app', this)"/>
<span class="helper"></span>
</label>
</div>
<div id="single-mode-kiosk-app" class="panel-collapse panel-body collapse-config"
role="tabpanel" style="display: none;" >
<div>
<ul class="message message-info">
<i class="icon fw fw-info"></i>
@ -1732,16 +1749,18 @@
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
<input id="cosu-profile-single-mode-is-kiosk-app" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp"/>
<span class="helper">
Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span>
data-key="isSingleModeAppBuiltForKiosk" checked="checked"/>
<span class="helper" title="Is single mode app built for Kiosk. Enable if lock task method is called in the application">
Is application built for Kiosk
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
</div>
</div>
<!--COSU single mode application-->
<div id="cosu-profile-idle-media-configuration" class="panel">
<div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;">

@ -1327,6 +1327,23 @@
class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent" disabled/>
</div>
<!--COSU single mode application-->
<div id="cosu-profile-single-mode-app-configuration" class="panel">
<div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;">
Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span>
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp" disabled
onchange="changeDivVisibility('single-mode-kiosk-app', this)"/>
<span class="helper"></span>
</label>
</div>
<div id="single-mode-kiosk-app" class="panel-collapse panel-body collapse-config"
role="tabpanel" style="display: none;" >
<div>
<ul class="message message-info">
<i class="icon fw fw-info"></i>
@ -1337,16 +1354,19 @@
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
<input id="cosu-profile-single-mode-is-kiosk-app" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp" disabled/>
<span class="helper">
Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span>
data-key="isSingleModeAppBuiltForKiosk"
checked="checked" disabled/>
<span class="helper" title="Is single mode app built for Kiosk. Enable if lock task method is called in the application">
Is application built for Kiosk
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
</div>
</div>
<!--COSU single mode application-->
<div id="cosu-profile-idle-media-configuration" class="panel">
<div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;">

@ -1453,6 +1453,23 @@
class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent"/>
</div>
<!--COSU single mode application-->
<div id="cosu-profile-single-mode-app-configuration" class="panel">
<div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;">
Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span>
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp"
onchange="changeDivVisibility('single-mode-kiosk-app', this)"/>
<span class="helper"></span>
</label>
</div>
<div id="single-mode-kiosk-app" class="panel-collapse panel-body collapse-config"
role="tabpanel" style="display: none;" >
<div>
<ul class="message message-info">
<i class="icon fw fw-info"></i>
@ -1463,16 +1480,18 @@
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
<input id="cosu-profile-single-mode-is-kiosk-app" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp"/>
<span class="helper">
Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span>
data-key="isSingleModeAppBuiltForKiosk" checked="checked"/>
<span class="helper" title="Is single mode app built for Kiosk. Enable if lock task method is called in the application">
Is application built for Kiosk
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
</div>
</div>
<!--COSU single mode application-->
<div id="cosu-profile-idle-media-configuration" class="panel">
<div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;">

Loading…
Cancel
Save