Merge branch 'master' into 'master'

Add UI for single mode app kiosk policy

See merge request entgra/carbon-device-mgt-plugins!32
revert-dabc3590
Inosh Perara 6 years ago
commit a952ca0502

@ -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;">
@ -1948,8 +1967,8 @@
class="form-control operationDataKeys"
data-key="isTopBarEnabled"/>
<span class="helper"
title="Enabled top control bar that displays all the controllers such as address bar, home button and forwards controllers">
Enabled top control bar
title="Enable top control bar that displays all the controllers such as address bar, home button and forwards controllers">
Enable top control bar
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -2017,8 +2036,8 @@
<input id="cosu-browser-property-lock-to-primary-url" type="checkbox"
class="form-control operationDataKeys"
data-key="lockToPrimaryURL" checked />
<span class="helper" title="Only allowed to visit the pirmary url.">
Only allowed to visit the pirmary url
<span class="helper" title="Only allowed to visit the primary url.">
Only allowed to visit the primary url
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -2077,8 +2096,8 @@
<input id="cosu-browser-property-is-form-auto-fill-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isFormAutoFillEnabled"/>
<span class="helper" title="Is form auto-fille enabled.">
Is form auto-fille enabled
<span class="helper" title="Is form auto-fill enabled.">
Is form auto-fill enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -2125,15 +2144,15 @@
<input id="cosu-browser-property-is-app-cache-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isAppCacheEnabled"/>
<span class="helper" title="Is application chche enabled.">
Is application chche enabled
<span class="helper" title="Is application cache enabled.">
Is application cache enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Application caches file path
Application cache file path
<span class="helper" title="Sets the path to the Application Caches files. In order for the Application Caches API to be enabled, this method must be called with a path to which the application can write">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
@ -2210,7 +2229,7 @@
class="form-control operationDataKeys"
data-key="isDisplayZoomControls"/>
<span class="helper" title="Sets whether the browser should display on-screen zoom controls. Guesture based controllers are still available">
Show on-screen zoom controlers
Show on-screen zoom controllers
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -2240,7 +2259,7 @@
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Defaut text encoding name
Default text encoding name
<span class="helper" title="Sets the default text encoding name to use when decoding html pages.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>

@ -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;">
@ -1552,8 +1572,8 @@
<input id="cosu-browser-property-top-bar-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isTopBarEnabled" disabled/>
<span class="helper" title="Enabled top control bar that displays all the controllers such as address bar, home button and forwards controllers">
Enabled top control bar
<span class="helper" title="Enable top control bar that displays all the controllers such as address bar, home button and forwards controllers">
Enable top control bar
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -1622,8 +1642,8 @@
<input id="cosu-browser-property-lock-to-primary-url" type="checkbox"
class="form-control operationDataKeys"
data-key="lockToPrimaryURL" disabled/>
<span class="helper" title="Only allowed to visit the pirmary url.">
Only allowed to visit the pirmary url
<span class="helper" title="Only allowed to visit the primary url.">
Only allowed to visit the primary url
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -1682,8 +1702,8 @@
<input id="cosu-browser-property-is-form-auto-fill-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isFormAutoFillEnabled" disabled/>
<span class="helper" title="Is form auto-fille enabled.">
Is form auto-fille enabled
<span class="helper" title="Is form auto-fill enabled.">
Is form auto-fill enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -1730,15 +1750,15 @@
<input id="cosu-browser-property-is-app-cache-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isAppCacheEnabled" disabled/>
<span class="helper" title="Is application chche enabled.">
Is application chche enabled
<span class="helper" title="Is application cache enabled.">
Is application cache enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Application caches file path
Application cache file path
<span class="helper" title="Sets the path to the Application Caches files. In order for the Application Caches API to be enabled, this method must be called with a path to which the application can write">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
@ -1815,7 +1835,7 @@
class="form-control operationDataKeys"
data-key="isDisplayZoomControls" disabled/>
<span class="helper" title="Sets whether the browser should display on-screen zoom controls. Guesture based controllers are still available">
Show on-screen zoom controlers
Show on-screen zoom controllers
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -1845,7 +1865,7 @@
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Defaut text encoding name
Default text encoding name
<span class="helper" title="Sets the default text encoding name to use when decoding html pages.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>

@ -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;">
@ -1678,8 +1697,8 @@
<input id="cosu-browser-property-top-bar-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isTopBarEnabled"/>
<span class="helper" title="Enabled top control bar that displays all the controllers such as address bar, home button and forwards controllers">
Enabled top control bar
<span class="helper" title="Enable top control bar that displays all the controllers such as address bar, home button and forwards controllers">
Enable top control bar
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -1747,8 +1766,8 @@
<input id="cosu-browser-property-lock-to-primary-url" type="checkbox"
class="form-control operationDataKeys"
data-key="lockToPrimaryURL" checked />
<span class="helper" title="Only allowed to visit the pirmary url.">
Only allowed to visit the pirmary url
<span class="helper" title="Only allowed to visit the primary url.">
Only allowed to visit the primary url
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -1807,8 +1826,8 @@
<input id="cosu-browser-property-is-form-auto-fill-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isFormAutoFillEnabled"/>
<span class="helper" title="Is form auto-fille enabled.">
Is form auto-fille enabled
<span class="helper" title="Is form auto-fill enabled.">
Is form auto-fill enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -1855,15 +1874,15 @@
<input id="cosu-browser-property-is-app-cache-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isAppCacheEnabled"/>
<span class="helper" title="Is application chche enabled.">
Is application chche enabled
<span class="helper" title="Is application cache enabled.">
Is application cache enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Application caches file path
Application cache file path
<span class="helper" title="Sets the path to the Application Caches files. In order for the Application Caches API to be enabled, this method must be called with a path to which the application can write">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
@ -1940,7 +1959,7 @@
class="form-control operationDataKeys"
data-key="isDisplayZoomControls"/>
<span class="helper" title="Sets whether the browser should display on-screen zoom controls. Guesture based controllers are still available">
Show on-screen zoom controlers
Show on-screen zoom controllers
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
@ -1970,7 +1989,7 @@
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Defaut text encoding name
Default text encoding name
<span class="helper" title="Sets the default text encoding name to use when decoding html pages.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>

Loading…
Cancel
Save