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

@ -1722,26 +1722,45 @@
class="form-control operationDataKeys" data-key="kioskAppName" class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent"/> maxlength="100" placeholder="Name to appear on the agent"/>
</div> </div>
<div> <!--COSU single mode application-->
<ul class="message message-info"> <div id="cosu-profile-single-mode-app-configuration" class="panel">
<i class="icon fw fw-info"></i> <div class="wr-input-control sub-title panel-title"
Selected initial app in style="padding: 0px; padding-right:15px; font-size:15px;">
<strong>Enrollment Application Install policy config</strong>
will be selected for single application mode
</ul>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp"/>
<span class="helper">
Is single application mode Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign" <span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span> title="Is single application mode"></span>
</span> <label class="wr-input-control checkbox">
</label> <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>
Selected initial app in
<strong>Enrollment Application Install policy config</strong>
will be selected for single application mode
</ul>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-profile-single-mode-is-kiosk-app" type="checkbox"
class="form-control operationDataKeys"
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> </div>
<!--COSU single mode application-->
<div id="cosu-profile-idle-media-configuration" class="panel"> <div id="cosu-profile-idle-media-configuration" class="panel">
<div class="wr-input-control sub-title panel-title" <div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;"> style="padding: 0px; padding-right:15px; font-size:15px;">

@ -1327,26 +1327,46 @@
class="form-control operationDataKeys" data-key="kioskAppName" class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent" disabled/> maxlength="100" placeholder="Name to appear on the agent" disabled/>
</div> </div>
<div> <!--COSU single mode application-->
<ul class="message message-info"> <div id="cosu-profile-single-mode-app-configuration" class="panel">
<i class="icon fw fw-info"></i> <div class="wr-input-control sub-title panel-title"
Selected initial app in style="padding: 0px; padding-right:15px; font-size:15px;">
<strong>Enrollment Application Install policy config</strong>
will be selected for single application mode
</ul>
</div>
<div class="wr-input-control">
<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/>
<span class="helper">
Is single application mode Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign" <span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span> title="Is single application mode"></span>
</span> <label class="wr-input-control checkbox">
</label> <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>
Selected initial app in
<strong>Enrollment Application Install policy config</strong>
will be selected for single application mode
</ul>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-profile-single-mode-is-kiosk-app" type="checkbox"
class="form-control operationDataKeys"
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> </div>
<!--COSU single mode application-->
<div id="cosu-profile-idle-media-configuration" class="panel"> <div id="cosu-profile-idle-media-configuration" class="panel">
<div class="wr-input-control sub-title panel-title" <div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;"> style="padding: 0px; padding-right:15px; font-size:15px;">

@ -1453,26 +1453,45 @@
class="form-control operationDataKeys" data-key="kioskAppName" class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent"/> maxlength="100" placeholder="Name to appear on the agent"/>
</div> </div>
<div> <!--COSU single mode application-->
<ul class="message message-info"> <div id="cosu-profile-single-mode-app-configuration" class="panel">
<i class="icon fw fw-info"></i> <div class="wr-input-control sub-title panel-title"
Selected initial app in style="padding: 0px; padding-right:15px; font-size:15px;">
<strong>Enrollment Application Install policy config</strong>
will be selected for single application mode
</ul>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp"/>
<span class="helper">
Is single application mode Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign" <span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span> title="Is single application mode"></span>
</span> <label class="wr-input-control checkbox">
</label> <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>
Selected initial app in
<strong>Enrollment Application Install policy config</strong>
will be selected for single application mode
</ul>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-profile-single-mode-is-kiosk-app" type="checkbox"
class="form-control operationDataKeys"
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> </div>
<!--COSU single mode application-->
<div id="cosu-profile-idle-media-configuration" class="panel"> <div id="cosu-profile-idle-media-configuration" class="panel">
<div class="wr-input-control sub-title panel-title" <div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;"> style="padding: 0px; padding-right:15px; font-size:15px;">

Loading…
Cancel
Save