{{!
  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.
}}
<div class="row no-gutter">
    <div class="wr-hidden-operations-nav col-lg-4">
        <a href="javascript:void(0)" onclick="showAdvanceOperation('passcode-policy', this)" class="selected">
                <span class="wr-hidden-operations-icon fw-stack">
                    <i class="fw fw-key fw-stack-2x"></i>
                </span>
            Passcode Policy
            <span id="passcode-policy-configured" class="has-configured status-icon hidden"><i
                    class="fw fw-success"></i></span>
            <span id="passcode-policy-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
            <span id="passcode-policy-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
        </a>
        <a href="javascript:void(0)" onclick="showAdvanceOperation('camera', this)">
                <span class="wr-hidden-operations-icon fw-stack">
                    <i class="fw fw-block fw-stack-2x"></i>
                </span>
            Restrictions
            <span id="camera-configured" class="has-configured status-icon hidden"><i class="fw fw-success"></i></span>
            <span id="camera-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
            <span class="camera-error status-icon hidden"><i class="fw fw-error"></i></span>
        </a>
        <a href="javascript:void(0)" onclick="showAdvanceOperation('encrypt-storage', this)">
                <span class="wr-hidden-operations-icon fw-stack">
                    <i class="fw fw-security fw-stack-2x"></i>
                </span>
            Encryption Settings
            <span id="encrypt-storage-configured" class="has-configured status-icon hidden"><i
                    class="fw fw-success"></i></span>
            <span id="encrypt-storage-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
            <span id="encrypt-storage-error" class="encryption-error status-icon hidden"><i
                    class="fw fw-error"></i></span>
        </a>
        <a href="javascript:void(0)" onclick="showAdvanceOperation('wifi', this)">
                <span class="wr-hidden-operations-icon fw-stack">
                    <i class="fw fw-wifi fw-stack-2x"></i>
                </span>
            Wi-Fi Settings
            <span id="wifi-configured" class="has-configured status-icon hidden"><i class="fw fw-success"></i></span>
            <span id="wifi-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
            <span id="wifi-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
        </a>
        <a href="javascript:void(0)" onclick="showAdvanceOperation('vpn', this)">
                <span class="wr-hidden-operations-icon fw-stack">
                    <i class="fw fw-vpn fw-stack-2x"></i>
                </span>
            Virtual Private Network
            <span id="vpn-configured" class="has-configured status-icon hidden"><i class="fw fw-success"></i></span>
            <span id="vpn-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
            <span id="vpn-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
        </a>
        {{#unless iscloud}}
            <a href="javascript:void(0)" class="worker-profile" onclick="showAdvanceOperation('work-profile', this)">
             <span class="wr-hidden-operations-icon fw-stack">
                 <i class="fw fw-service fw-stack-2x"></i>
             </span>
                Work-Profile Configurations
                <span id="work-profile-configured" class="has-configured status-icon hidden"><i
                        class="fw fw-success"></i></span>
                <span id="work-profile-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
                <span id="work-profile-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
            </a>
            <a href="javascript:void(0)" onclick="showAdvanceOperation('app-restriction', this)">
            <span class="fw-stack fw-lg">
                <i class="fw fw-application fw-stack-1x"></i>
                <i class="fw fw-block fw-stack-2x"></i>
            </span>
                Application Restrictions
                <span id="app-restriction-configured" class="has-configured status-icon hidden"><i
                        class="fw fw-success"></i></span>
                <span id="app-restriction-ok" class="has-success status-icon hidden"><i
                        class="fw fw-success"></i></span>
                <span id="app-restriction-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
            </a>
            <a href="javascript:void(0)" class="worker-profile"
               onclick="showAdvanceOperation('cosu-system-update-policy', this)">
            <span class="wr-hidden-operation-icon fw-stack">
                <i class="fw fw-import fw-stack-2x"></i>
            </span>
                System Update Policy (COSU)
                <span id="cosu-system-update-policy-configured" class="has-configured status-icon hidden"><i
                        class="fw fw-success"></i></span>
                <span id="cosu-system-update-policy-ok" class="has-success status-icon hidden"><i
                        class="fw fw-success"></i></span>
                <span id="cosu-system-update-policy-error" class="has-error status-icon hidden"><i
                        class="fw fw-error"></i></span>
            </a>
            <a href="javascript:void(0)" onclick="showAdvanceOperation('cosu-whitelisted-applications', this)"
               class="hide">
            <span class="wr-hidden-operations-icon fw-stack">
                <i class="fw fw-register fw-stack-2x"></i>
            </span>
                Whitelist Apps (COSU)
                <span id="cosu-whitelisted-applications-configured" class="has-configured status-icon hidden"><i
                        class="fw fw-success"></i></span>
                <span id="cosu-whitelisted-applications-ok" class="has-success status-icon hidden"><i
                        class="fw fw-success"></i></span>
                <span id="cosu-whitelisted-applications-error" class="has-error status-icon hidden"><i
                        class="fw fw-error"></i></span>
            </a>
        {{/unless}}
    </div>

    <div class="wr-hidden-operations-content col-lg-8">
        <!-- passcode-policy -->
        <div class="wr-hidden-operation" data-operation="passcode-policy" style="display: block">
            <div class="panel panel-default operation-data" data-operation="passcode-policy"
                 data-operation-code="PASSCODE_POLICY">
                <div id="passcode-policy-heading" class="panel-heading" role="tab">
                    <h2 class="sub-title panel-title">
                        Passcode Policy
                        <label id="passcode-policy-lbl" class="wr-input-control switch" data-toggle="collapse"
                               data-target="#passcode-policy-body">
                            <input type="checkbox"/>
                            <span class="helper"></span>
                            <span class="text"></span>
                        </label>
                    </h2>
                    <div class="panel-title-description">
                        Enforce a configured passcode policy on Android devices.
                        Once this profile is applied, the device owners won't be able to modify the password settings on their devices.
                    </div>
                </div>
                <div id="passcode-policy-body" class="panel-collapse panel-body collapse" role="tabpanel"
                     aria-labelledby="passcode-policy-body">
                    <hr/>
                    <div id="passcode-policy-feature-error-msg" class="alert alert-danger hidden" role="alert">
                        <i class="icon fw fw-error"></i><span></span>
                    </div>

                    <div class="wr-input-control">
                        <label class="wr-input-control checkbox">
                            <input id="passcode-policy-allow-simple" type="checkbox"
                                   class="form-control operationDataKeys" data-key="passcodePolicyAllowSimple"
                                   checked="checked"/>
                            <span class="helper"
                                  title="Permit the use of repeating, ascending and descending character sequences">
                                Allow simple value
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                        </label>
                    </div>

                    <div class="wr-input-control">
                        <label class="wr-input-control checkbox">
                            <input id="passcode-policy-require-alphanumeric" type="checkbox"
                                   class="form-control operationDataKeys" data-key="passcodePolicyRequireAlphanumeric"
                                   checked="checked"/>
                            <span class="helper" title="Require passcode to contain both letters and numbers">
                                Require alphanumeric value
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                        </label>
                    </div>

                    <div class="wr-input-control">
                        <label class="wr-input-label" for="passcode-policy-min-length">
                            Minimum passcode length
                            <span class="helper" title="Minimum number of characters allowed in a passcode">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                        </label>
                        <select id="passcode-policy-min-length" class="form-control operationDataKeys"
                                data-key="passcodePolicyMinLength" data-default="0">
                            <option value="" selected="selected">
                                None
                            </option>
                            <option value="4">04</option>
                            <option value="5">05</option>
                            <option value="6">06</option>
                            <option value="7">07</option>
                            <option value="8">08</option>
                            <option value="9">09</option>
                            <option value="10">10</option>
                            <option value="11">11</option>
                            <option value="12">12</option>
                            <option value="13">13</option>
                            <option value="14">14</option>
                            <option value="15">15</option>
                        </select>
                    </div>

                    <div class="wr-input-control">
                        <label class="wr-input-label" for="passcode-policy-min-complex-chars">
                            Minimum number of complex characters
                            <span class="helper"
                                  title="Minimum number of complex or non-alphanumeric characters allowed in a passcode">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                        </label>
                        <select id="passcode-policy-min-complex-chars" class="form-control operationDataKeys"
                                data-key="passcodePolicyMinComplexChars" data-default="0">
                            <option value="" selected="selected">
                                None
                            </option>
                            <option value="1">01</option>
                            <option value="2">02</option>
                            <option value="3">03</option>
                            <option value="4">04</option>
                            <option value="5">05</option>
                        </select>
                    </div>

                    <div class="wr-input-control">
                        <label class="wr-input-label" for="passcode-policy-max-passcode-age-in-days">
                            Maximum passcode age in days*
                            <span class="helper" title="Number of days after which a passcode must be changed">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            <br>
                            ( Should be in between 1-to-730 days or none )
                        </label>
                        <input id="passcode-policy-max-passcode-age-in-days" type="text"
                               class="form-control operationDataKeys" data-key="passcodePolicyMaxPasscodeAgeInDays"
                               maxlength="3">
                    </div>

                    <div class="wr-input-control">
                        <label class="wr-input-label" for="passcode-policy-passcode-history">
                            Passcode history*
                            <span class="helper" title="Number of consequent unique passcodes to be used before reuse">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            <br>
                            ( Should be in between 1-to-50 passcodes or none )
                        </label>
                        <input id="passcode-policy-passcode-history" type="text" class="form-control operationDataKeys"
                               data-key="passcodePolicyPasscodeHistory" maxlength="2">
                    </div>

                    <div class="wr-input-control">
                        <label class="wr-input-label" for="passcodePolicyMaxFailedAttempts">
                            Maximum number of failed attempts
                            <span class="helper"
                                  title="The maximum number of failed password entry attempts. If the correct password is not entered within the defined number of attempts, the data on the device will be erased">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                        </label>
                        <select id="passcode-policy-max-failed-attempts" class="form-control operationDataKeys"
                                data-key="passcodePolicyMaxFailedAttempts" data-default="0">
                            <option value="" selected="selected">
                                None
                            </option>
                            <option value="3">03</option>
                            <option value="4">04</option>
                            <option value="5">05</option>
                            <option value="6">06</option>
                            <option value="7">07</option>
                            <option value="8">08</option>
                            <option value="9">09</option>
                            <option value="10">10</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <!-- /passcode-policy -->

        <!-- camera -->
        <div class="wr-hidden-operation" data-operation="camera">
            <div class="panel panel-default operation-data" data-operation="camera" data-operation-code="CAMERA">
                <div id="camera-heading" class="panel-heading" role="tab">
                    <h2 class="sub-title panel-title">
                        Restrictions
                        <label class="wr-input-control switch" data-toggle="collapse" data-target="#camera-body">
                            <input type="checkbox"/>
                            <span class="helper"></span>
                            <span class="text"></span>
                        </label>
                    </h2>
                    <div class="panel-title-description">
                        Restrict predefined settings on Android devices.
                        Once this profile is applied, the device owners won't be able to modify the configured settings on their devices.
                    </div>
                </div>
                <div id="camera-body" class="panel-collapse panel-body collapse" role="tabpanel"
                     aria-labelledby="camera-body">
                    <hr/>
                    <div id="camera-feature-error-msg" class="alert alert-danger hidden" role="alert">
                        <i class="icon fw fw-error"></i><span></span>
                    </div>
                    <br>
                    <br>
                    <div class="wr-input-control">
                        <label class="wr-input-control checkbox">
                            <input id="camera-enabled" type="checkbox" class="operationDataKeys"
                                   data-key="cameraEnabled" checked="checked"/>
                            <span class="helper"
                                  title="Having this checked would enable Usage of phone camera in the device.">
                                Allow use of camera
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                        </label>
                    </div>
                    {{#unless iscloud}}
                        <div class="worker-profile-or-owner">
                            <ul class="message message-info">
                                <i class="icon fw fw-info"></i>
                                <a id="policy-listing-status-msg"> Below Restrictions are valid only when the Agent is
                                    <b>work-profile owner</b> or <b>device owner</b>.</a>
                            </ul>
                        </div>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-configuring-credentials-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowConfigCredentials"/>
                                <span class="helper"
                                      title="Having this checked would disallow configuring credentials.">
                                Disallow configuring credentials
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-configuring-VPN-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowConfigVpn"/>
                                <span class="helper" title="Having this checked would disallow configuring VPN.">
                                Disallow configuring VPN
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>

                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-configuring-app-control-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowAppControl"/>
                                <span class="helper"
                                      title="Having this checked would disallow configuring app control.">
                                Disallow configuring app control
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-cross-profile-copy-paste-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowCrossProfileCopyPaste"/>
                                <span class="helper"
                                      title="Having this checked would disallow cross profile copy paste.">
                                Disallow cross profile copy paste
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-debugging-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowDebugging"/>
                                <span class="helper" title="Having this checked would disallow debugging.">
                                Disallow debuging
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-install-apps-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowInstallApps"/>
                                <span class="helper" title="Having this checked would disallow install apps.">
                                Disallow install apps
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-installing-from-unknown-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowInstallUnknownSources"/>
                                <span class="helper" title="Having this checked would disallow installing from unknown
                            sources.">
                                Disallow install from unknown sources
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-modify-accounts-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowModifyAccounts"/>
                                <span class="helper" title="Having this checked would disallow modify accounts.">
                                Disallow modify accounts
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-outgoing-beam-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowOutgoingBeam"/>
                                <span class="helper" title="Having this checked would disallow outgoing beam.">
                                Disallow outgoing beam
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-location-sharing-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowLocationSharing"/>
                                <span class="helper" title="Having this checked would disallow location sharing.">
                                Disallow location sharing
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-uninstall-apps-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowUninstallApps"/>
                                <span class="helper" title="Having this checked would disallow uninstall apps.">
                                Disallow uninstall apps
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-parent-profile-app-linking-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowParentProfileAppLinking"/>
                                <span class="helper"
                                      title="Having this checked would disallow parent profile app linking.">
                                Disallow parent profile app linking
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="ensure-verifying-apps-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="ensureVerifyApps"/>
                                <span class="helper" title="Having this checked would ensure verifying apps .">
                                Ensure verifying apps
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="enable-auto-timing-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="enableAutoTime"/>
                                <span class="helper" title="Having this checked would enable auto timing .">
                                Enable auto timing
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control worker-profile-or-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disable-screen-capture-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disableScreenCapture"/>
                                <span class="helper" title="Having this checked would disable screen capture .">
                                Disable screen capture
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <div class="device-owner">
                            <ul class="message message-info device-owner">
                                <i class="icon fw fw-info"></i>
                                <a id="policy-listing-status-msg"> Below Restrictions are valid only when the Agent is
                                    the
                                    <b>device owner</b>.</a>
                            </ul>
                        </div>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-SMS-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowSMS"/>
                                <span class="helper" title="Having this checked would disallow SMS.">
                                Disallow SMS
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="volume-adjust-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowAdjustVolumeEnabled"/>
                                <span class="helper" title="Having this checked would disallow volume adjust.">
                                Disallow volume adjust
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-configuring-cell-broadcast-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowConfigCellBroadcasts"/>
                                <span class="helper"
                                      title="Having this checked would disallow configuring cell broadcast.">
                                Disallow cell broadcast
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-configuring-bluetooth-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowConfigBluetooth"/>
                                <span class="helper" title="Having this checked would disallow configuring bluetooth.">
                                Disallow configuring bluetooth.
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-configuring-mobile-networkst-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowConfigMobileNetworks"/>
                                <span class="helper"
                                      title="Having this checked would disallow configuring mobile networks.">
                                Disallow configuring mobile networks
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-configuring-tethering-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowConfigTethering"/>
                                <span class="helper" title="Having this checked would disallow configuring tethering.">
                                Disallow configuring tethering
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-configuring-Wifi-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowConfigWifi"/>
                                <span class="helper" title="Having this checked would disallow configuring Wifi.">
                                Disallow configuring Wifi
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-safe-boot-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowSafeBoot"/>
                                <span class="helper" title="Having this checked would disallow safe boot.">
                                Disallow safe boot
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-outgoing-calls-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowOutgoingCalls"/>
                                <span class="helper" title="Having this checked would disallow outgoing calls.">
                                Disallow outgoing calls
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-mount-physical-media-enabled" type="checkbox"
                                       class="operationDataKeys"
                                       data-key="disallowMountPhysicalMedia"/>
                                <span class="helper" title="Having this checked would disallow mount physical media.">
                                Disallow mount physical media
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-create-window-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowCreateWindows"/>
                                <span class="helper" title="Having this checked would disallow create window.">
                                Disallow create window
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-factory-reset-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowFactoryReset"/>
                                <span class="helper" title="Having this checked would disallow factory reset.">
                                Disallow factory reset
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-remove-user-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowRemoveUser"/>
                                <span class="helper" title="Having this checked would disallow remove user.">
                                Disallow remove user
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-add-user-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowAddUser"/>
                                <span class="helper" title="Having this checked would disallow add user.">
                                Disallow add user
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-network-reset-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowNetworkReset"/>
                                <span class="helper" title="Having this checked would disallow network reset.">
                                Disallow network reset
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-USB-transfer-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowUSBFileTransfer"/>
                                <span class="helper" title="Having this checked would disallow USB file transfer.">
                                Disallow USB file transfer
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disallow-unmute-microphone-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disallowUnmuteMicrophone"/>
                                <span class="helper" title="Having this checked would disallow unmute microphone.">
                                Disallow unmute microphone
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                        <div class="device-owner">
                            <ul class="message message-info">
                                <i class="icon fw fw-info"></i>
                                <a id="policy-listing-status-msg">Below restrictions will be applied on devices with
                                    Android
                                    version 6.0 Marshmallow onwards only.</a>
                            </ul>
                        </div>
                        <div class="wr-input-control device-owner">
                            <label class="wr-input-control checkbox">
                                <input id="disable-status-bar-enabled" type="checkbox" class="operationDataKeys"
                                       data-key="disableStatusBar"/>
                                <span class="helper" title="Having this checked would disable status bar .">
                                Disable status bar
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            </label>
                        </div>
                        <br>
                    {{/unless}}
                </div>
            </div>
        </div>
        <!-- /camera -->

        <!-- encrypt-storage -->
        <div class="wr-hidden-operation" data-operation="encrypt-storage">
            <div class="panel panel-default operation-data" data-operation="encrypt-storage"
                 data-operation-code="ENCRYPT_STORAGE">
                <div id="encrypt-storage-heading" class="panel-heading" role="tab">
                    <h2 class="sub-title panel-title">
                        Encryption Settings
                        <label class="wr-input-control switch" data-toggle="collapse"
                               data-target="#encrypt-storage-body">
                            <input type="checkbox"/>
                            <span class="helper"></span>
                            <span class="text"></span>
                        </label>
                    </h2>
                    <div class="panel-title-description">
                        Encrypt data on an Android device when the device is locked and make it readable when the device is unlocked.
                        Once this profile is applied, the device owners won't be able to modify the configured settings on their devices.
                    </div>
                </div>
                <div id="encrypt-storage-body" class="panel-collapse panel-body collapse" role="tabpanel"
                     aria-labelledby="encrypt-storage-body">
                    </hr>
                    <div id="encrypt-storage-feature-error-msg" class="alert alert-danger hidden" role="alert">
                        <i class="icon fw fw-error"></i><span></span>
                    </div>
                    Un-check following checkbox in case you do not need the device to be encrypted.
                    <br>
                    <br>
                    <div class="wr-input-control">
                        <label class="wr-input-control checkbox">
                            <input id="encrypt-storage-enabled" type="checkbox" class="operationDataKeys"
                                   data-key="encryptStorageEnabled" checked="checked"/>
                            <span class="helper"
                                  title="Having this checked would enable Storage-encryption in the device">
                                Enable storage-encryption
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                        </label>
                    </div>
                    <br>
                </div>
            </div>
        </div>
        <!-- /encrypt-storage -->

        <!-- wi-fi -->
        <div class="wr-hidden-operation" data-operation="wifi">
            <div class="panel panel-default operation-data" data-operation="wifi" data-operation-code="WIFI">
                <div id="wifi-heading" class="panel-heading" role="tab">
                    <h2 class="sub-title panel-title">
                        Wi-Fi Settings
                        <label class="wr-input-control switch" data-toggle="collapse" data-target="#wifi-body">
                            <input type="checkbox"/>
                            <span class="helper"></span>
                            <span class="text"></span>
                        </label>
                    </h2>
                    <div class="panel-title-description">
                        Configure the Wi-Fi settings on Android devices.
                        Once this profile is applied, the device owners won't be able to modify the configured settings on their devices.
                    </div>
                </div>
                <div id="wifi-body" class="panel-collapse panel-body collapse" role="tabpanel"
                     aria-labelledby="wifi-body">
                    <hr/>
                    Please note that * sign represents required fields of data.
                    <br>
                    <br>
                    <div id="wifi-feature-error-msg" class="alert alert-danger hidden" role="alert">
                        <i class="icon fw fw-error"></i><span></span>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="wifi-ssid">
                            Service Set Identifier (SSID)*
                            <span class="helper" title="Identification of the wireless network to be configured.">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                        <label id="wifiSsidValidationText" class="wr-input-label hidden">
                            Service Set Identifier should be 1-to-30 characters long
                        </label>
                        <input id="wifi-ssid" type="text" class="form-control operationDataKeys" data-key="wifiSSID"
                               maxlength="100" placeholder="[ Should be 1-to-30 characters long ]"/>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="wifi-type">
                            Security*
                            <span class="helper"
                                  title="Security type of the wireless network to be configured. 802.1x EAP works with
                                  Android 4.3 and above devices only.">
                                        <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                    </span>
                        </label>
                        <select class="form-control operationDataKeys" id="wifi-type"
                                onchange="changeAndroidWifiPolicy(this)" data-key="wifiType">
                            <option value="none" selected>None</option>
                            <option value="wep">WEP</option>
                            <option value="wpa">WPA/WPA 2 PSK</option>
                            <option value="802eap">802.1x EAP</option>
                        </select>
                    </div>

                    <div class="wr-input-control" id="control-wifi-eap" style="display:none;">
                        <label class="wr-input-label" for="wifi-eap">
                            EAP Method
                            <span class="helper" title="EAP Method of the wireless network to be configured.">
                                        <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                    </span>
                        </label>
                        <select class="form-control operationDataKeys" id="wifi-eap"
                                onchange="changeAndroidWifiPolicyEAP(this, document.getElementById('wifi-type'))"
                                data-key="wifiEAP">
                            <option value="peap">PEAP</option>
                            <option value="tls">TLS</option>
                            <option value="ttls">TTLS</option>
                            <option value="pwd">PWD</option>
                            <option value="sim">SIM</option>
                            <option value="aka">AKA</option>
                        </select>
                    </div>
                    <div class="wr-input-control" id="control-wifi-phase2" style="display:none;">
                        <label class="wr-input-label" for="wifi-phase2">
                            Phase 2 Authentication
                            <span class="helper"
                                  title="Phase 2 authentication of the wireless network to be configured.">
                                        <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                    </span>
                        </label>
                        <select class="form-control operationDataKeys" id="wifi-phase2" data-key="wifiPhase2">
                            <option value="none">None</option>
                            <option value="pap">PAP</option>
                            <option value="mchap">MCHAP</option>
                            <option value="mchapv2">MCHAPV2</option>
                            <option value="gtc">GTC</option>
                        </select>
                    </div>
                    <div class="wr-input-control" id="control-wifi-provisioning" style="display:none;">
                        <label class="wr-input-label" for="wifi-provisioning">
                            Provisioning
                            <span class="helper" title="Provisioning of the wireless network to be configured.">
                                        <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                    </span>
                        </label>
                        <select class="form-control operationDataKeys" id="wifi-provisioning"
                                data-key="wifiProvisioning">
                            <option value="0">0</option>
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                        </select>
                    </div>
                    <div class="wr-input-control" id="control-wifi-identity" style="display:none;">
                        <label class="wr-input-label" for="wifi-identity">
                            Identity
                            <span class="helper" title="Identity of the wireless network to be configured.">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                        <label id="wifiIdentityValidationText" class="wr-input-label hidden">
                            Identity should be 1-to-30 characters long
                        </label>
                        <input id="wifi-identity" type="text" class="form-control operationDataKeys"
                               data-key="wifiIdentity"
                               maxlength="100" placeholder="[ Should be 1-to-30 characters long ]"/>
                    </div>
                    <div class="wr-input-control" id="control-wifi-anoidentity" style="display:none;">
                        <label class="wr-input-label" for="wifi-anoidentity">
                            Anonymous Identity
                            <span class="helper" title="Identity of the wireless network to be configured.">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                        <label id="wifiIdentityValidationText" class="wr-input-label hidden">
                            Anonymous Identity should be 1-to-30 characters long
                        </label>
                        <input id="wifi-anoidentity" type="text" class="form-control operationDataKeys"
                               data-key="wifiAnoIdentity"
                               maxlength="100" placeholder="[ Should be 1-to-30 characters long ]"/>
                    </div>
                    <div class="wr-input-control" id="control-wifi-cacert" style="display:none;">
                        <label class="wr-input-label" for="wifi-password">
                            CA Certificate
                            <span class="helper" title="CA Certificate for the wireless network.">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                        <input id="wifi-cacert-upload" type="file" class="form-control"
                               onchange="base64EncodeFile(this, document.getElementById('wifi-cacert'),
                               document.getElementById('wifi-cacert-name'))"/>
                        <input id="wifi-cacert" type="hidden" class="form-control operationDataKeys"
                               data-key="wifiCaCert"/>
                        <input id="wifi-cacert-name" type="hidden" class="form-control operationDataKeys"
                               data-key="wifiCaCertName"/>
                    </div>
                    <div class="wr-input-control" id="control-wifi-password" style="display:none;">
                        <label class="wr-input-label" for="wifi-password">
                            Password
                            <span class="helper required" title="Password for the wireless network.">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                        <input id="wifi-password" type="password" class="form-control operationDataKeys"
                               data-key="wifiPassword" maxlength="100"/>
                    </div>
                    <!--</div>-->
                </div>
            </div>
        </div>
        <!-- /wi-fi -->

        <!--app-restriction-->
        <div class="wr-hidden-operation" data-operation="app-restriction">
            <div class="panel panel-default operation-data" data-operation="app-restriction"
                 data-operation-code="APP-RESTRICTION">
                <div id="app-restriction-heading" class="panel-heading" role="tab">
                    <h2 class="sub-title panel-title">
                        Application Restriction Settings
                        <label class="wr-input-control switch" data-toggle="collapse"
                               data-target="#app-restriction-body">
                            <input type="checkbox"/>
                            <span class="helper"></span>
                            <span class="text"></span>
                        </label>
                    </h2>
                    <div class="panel-title-description">
                        Blacklist or whitelist mobile application for Android devices.
                    </div>
                </div>
                <div id="app-restriction-body" class="panel-collapse panel-body collapse" role="tabpanel"
                     aria-labelledby="app-restriction-body">
                    <hr/>
                    <div id="app-restriction-feature-error-msg" class="alert alert-danger hidden" role="alert">
                        <i class="icon fw fw-error"></i><span></span>
                    </div>

                    <label class="wr-input-label" for="app-restriction-type">
                        Select type
                        <span class="helper" title="Select a type to proceed.">
                            <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                        </span>
                        <br>
                    </label>
                    <select id="app-restriction-type" class="form-control operationDataKeys" data-key="restrictionType">
                        <option value="" selected="selected">
                            None
                        </option>
                        <option value="black-list">Black List</option>
                        <option value="white-list">White List</option>
                    </select>

                    <div class="wr-input-control">
                        <label class="wr-input-label" for="restricted-applications">
                            <br><br>Restricted Application List
                            <span class="helper" title="Add an application to restrict.">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                        </label>
                        <br/>
                        <a href="#restricted-applications-grid" class="btn btn-secondary grid-input-add "
                           data-click-event="add-form">
                                <span class="icon fw-stack">
                                    <i class="fw fw-add fw-stack-1x"></i>
                                    <i class="fw fw-circle-outline fw-stack-2x"></i>
                                </span>

                            Add Application
                        </a>
                        <div id="restricted-applications"
                             class="operationDataKeys grouped-array-input multi-column-key-value-pair-array"
                             data-key="restrictedApplications" data-column-count="2">
                            <table class="table table-responsive table-striped">
                                <thead>
                                <tr>
                                    <th>No:</th>
                                    <th>Application Name/Description</th>
                                    <th>Package Name</th>
                                    <th></th>
                                </tr>
                                </thead>
                                <tbody data-add-form-container="#restricted-applications-grid">
                                <tr data-help-text="add-form">
                                    <td colspan="4">
                                        No entries added yet .
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <table class="template hidden">
                                <tbody data-add-form="#restricted-applications-grid">
                                <tr data-add-form-element="clone">
                                    <td data-title="No:">
                                        <span class="index"></span>
                                    </td>
                                    <td data-title="App Name">
                                        <input type="text" class="form-control grid-input-text" data-child-key="appName"
                                               maxlength="100" data-default="" placeholder="[ Gmail ]"/>
                                    </td>
                                    <td data-title="Package Name">
                                        <input type="text" class="form-control grid-input-text"
                                               data-child-key="packageName" maxlength="100" data-default=""
                                               placeholder="[ com.google.android.gm ]"/>
                                    </td>
                                    <td>
                                            <span class="list-group-item-actions">
                                                <a href="#restricted-applications-grid" class="grid-input-remove"
                                                   data-click-event="remove-form">
                                                    <span class="fw-stack helper" title="Remove Entry">
                                                        <i class="fw fw-circle-outline fw-stack-2x"></i>
                                                        <i class="fw fw-delete fw-stack-1x"></i>
                                                    </span>
                                                </a>
                                            </span>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--/app-restriction-->

        <!-- VPN -->
        <div class="wr-hidden-operation" data-operation="vpn">
            <div class="panel panel-default operation-data" data-operation="vpn" data-operation-code="VPN">
                <div id="vpn-heading" class="panel-heading" role="tab">
                    <h2 class="sub-title panel-title">
                        VPN Settings
                        <label class="wr-input-control switch" data-toggle="collapse" data-target="#vpn-body">
                            <input type="checkbox"/>
                            <span class="helper"></span>
                            <span class="text"></span>
                        </label>
                    </h2>
                    <div class="panel-title-description">
                        Configure the VPN settings on Android devices.
                        Once this profile is applied, the device owners won't be able to modify the configured settings on their devices.
                    </div>
                </div>
                <div id="vpn-body" class="panel-collapse panel-body collapse" role="tabpanel"
                     aria-labelledby="vpn-body">
                    <hr/>
                    Please note that * sign represents required fields of data.
                    <br>
                    <br>
                    <div id="vpn-feature-error-msg" class="alert alert-danger hidden" role="alert">
                        <i class="icon fw fw-error"></i><span></span>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="vpn-server-address">
                            VPN Server Address*
                            <span class="helper" title="Address of the VPN server to be configured.">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                        <input id="vpn-server-address" type="text" class="form-control operationDataKeys"
                               data-key="serverAddress" maxlength="200" placeholder="[ Should be a valid hostname ]"/>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="vpn-server-port">
                            VPN Server Port
                            <span class="helper" title="Port of the VPN server to be configured.">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                        <input id="vpn-server-port" type="text" class="form-control operationDataKeys"
                               data-key="serverPort" maxlength="100" placeholder="[ Optional field ]"/>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="vpn-shared-secret">
                            Shared Secret
                            <span class="helper" title="Shared secret.">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                        <input id="vpn-shared-secret" type="password" class="form-control operationDataKeys"
                               data-key="sharedSecret" maxlength="100" placeholder="[ Optional field ]"/>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="vpn-dns">
                            DNS Server
                            <span class="helper" title="DNS Server.">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                        <input id="vpn-dns" type="text" class="form-control operationDataKeys" data-key="dnsServer"
                               maxlength="100" placeholder="[ Optional field ]"/>
                    </div>
                </div>
            </div>
        </div>
        <!-- /VPN -->

        <!--Work-profile-->
        <div class="wr-hidden-operation" data-operation="work-profile">
            <div class="panel panel-default operation-data" data-operation="work-profile"
                 data-operation-code="WORK_PROFILE">
                <div id="work-profile-policy-heading" class="panel-heading" role="tab">
                    <h2 class="sub-title panel-title">
                        Work-Profile Configurations
                        <label id="work-profile-policy-lbl" class="wr-input-control switch" data-toggle="collapse"
                               data-target="#work-profile-policy-body">
                            <input type="checkbox"/>
                            <span class="helper"></span>
                            <span class="text"></span>
                        </label>
                    </h2>
                    <div class="panel-title-description">
                        Configure the settings to access mobile applications via the Android Work Profile.
                    </div>
                </div>
                <div id="work-profile-policy-body" class="panel-collapse panel-body collapse" role="tabpanel"
                     aria-labelledby="work-profile-policy-body">
                    <hr/>
                    <div id="work-profile-policy-feature-error-msg" class="alert alert-danger hidden" role="alert">
                        <i class="icon fw fw-error"></i><span></span>
                    </div>
                    <!--<div class="wr-input-control">
                        <label class="wr-input-control checkbox">
                            <input id="work-profile-policy-allow-cross-profile" type="checkbox" class="form-control
                            operationDataKeys" data-key="workProfilePolicyAllowCopyPaste" checked="checked" />
                                <span class="helper" title="Permit the use of repeating, ascending and descending
                                character sequences">
                                    Allow cross profile copy-paste
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                        </label>
                    </div> -->
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="work-profile-policy-max-passcode-age-in-days">
                            Profile Name
                            <span class="helper" title="Name of the Work-Profile created by IoT Server Agent">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            <br>
                        </label>
                        <input id="work-profile-policy-profile-name" type="text" class="form-control operationDataKeys"
                               data-key="workProfilePolicyProfileName" maxlength="20">
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="work-profile-policy-enable-system-apps">
                            Enable System Apps
                            <span class="helper" title="The set of system apps needed to be added to the work-profile">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            <br>
                            ( Should be exact package names seperated by commas. Ex: com.google.android.apps.maps,
                            com.google.android.calculator )
                        </label>
                        <textarea id="workProfilePolicyEnableSystemApps" type="text"
                                  class="form-control operationDataKeys" rows="4"
                                  data-key="workProfilePolicyEnableSystemApps"></textarea>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="work-profile-policy-hide-system-apps">
                            Hide System Apps
                            <span class="helper" title="The set of system apps needed to be hide in the work-profile">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            <br>
                            ( Should be exact package names seperated by commas. Ex: com.google.android.apps.maps,
                            com.google.android.calculator )
                        </label>
                        <textarea id="work-profile-policy-hide-system-apps" class="form-control operationDataKeys"
                                  rows="4" data-key="workProfilePolicyHideSystemApps" placeholder=""></textarea>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="work-profile-policy-unhide-system-apps">
                            Unhide System Apps
                            <span class="helper" title="The set of system apps needed to be unhide in the work-profile">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            <br>
                            ( Should be exact package names seperated by commas. Ex: com.google.android.apps.maps,
                            com.google.android.calculator )
                        </label>
                        <textarea id="work-profile-policy-unhide-system-apps" class="form-control operationDataKeys"
                                  rows="4" data-key="workProfilePolicyUnhideSystemApps" placeholder=""></textarea>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label" for="work-profile-policy-install-playstore-apps">
                            Enable Google Play Store Apps
                            <span class="helper"
                                  title="The set of apps needed to be installed from Google Playstore to work-profile">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            <br>
                            ( Should be exact package names seperated by commas. Ex: com.google.android.apps.maps,
                            com.google.android.calculator )
                        </label>
                        <textarea id="work-profile-policy-install-playstore-apps" class="form-control operationDataKeys"
                                  rows="4" data-key="workProfilePolicyEnablePlaystoreApps" placeholder=""></textarea>
                    </div>
                </div>
            </div>
        </div>
        <!-- cosu-system-update-policy -->
        <div class="wr-hidden-operation" data-operation="cosu-system-update-policy">
            <div class="panel panel-default operation-data" data-operation="cosu-system-update-policy-body"
                 data-operation-code="SYSTEM_UPDATE_POLICY">
                <div id="cosu-system-update-policy-heading" class="panel-heading" role="tab">
                    <h2 class="sub-title panel-title">
                        System Update Policy (COSU)
                        <label id="cosu-system-update-policy-lbl" class="wr-input-control switch" data-toggle="collapse"
                               data-target="#cosu-system-update-policy-body">
                            <input type="checkbox"/>
                            <span class="helper"></span>
                            <span class="text"></span>
                        </label>
                    </h2>
                    <div class="panel-title-description">
                        Configure the settings to install system updates on single-purpose or COSU devices. 
                    </div>
                </div>
                <div id="cosu-system-update-policy-body" class="panel-collapse panel-body collapse"
                     role="tabpanel"
                     aria-labelledby="cosu-system-update-policy-body">
                    <hr/>
                    <div id="cosu-system-update-policy-feature-error-msg" class="alert alert-danger hidden"
                         role="alert">
                        <i class="icon fw fw-error"></i><span></span>
                    </div>
                    <div class="wr-input-control">
                        <label class="wr-input-label">
                            System Update
                            <span class="helper" title="Type of the System Update to be set by the Device Owner">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                        </label>
                        <br><br>
                        <label class="wr-input-control radio light">
                            <input id="automatic-system-update-radio-btn" type="radio" name="cosu-system-update-type"
                                   class="form-control operationDataKeys" data-key="cosuSystemUpdatePolicyType"
                                   value="automatic"
                                   onclick="slideDownPaneAgainstValueSetForRadioButtons(this,
                                   'cosu-system-update-policy-window-select', ['window'])" checked/>
                            <span class="helper"
                                  title="Installs system update automatically as soon as one is available">
                                Automatic
                            </span>
                        </label>
                        <label class="wr-input-control radio light">
                            <input id="postpone-system-update-radio-btn" type="radio" name="cosu-system-update-type"
                                   class="form-control operationDataKeys" data-key="cosuSystemUpdatePolicyType"
                                   value="postpone"
                                   onclick="slideDownPaneAgainstValueSetForRadioButtons(this,
                                   'cosu-system-update-policy-window-select', ['window'])"/>
                            <span class="helper"
                                  title="Incoming system update will be blocked for a maximum of 30 days">
                                Postpone
                            </span>
                        </label>
                        <label class="wr-input-control radio light">
                            <input id="window-system-update-radio-btn" type="radio" name="cosu-system-update-type"
                                   class="form-control operationDataKeys" data-key="cosuSystemUpdatePolicyType"
                                   value="window"
                                   onclick="slideDownPaneAgainstValueSetForRadioButtons(this,
                                    'cosu-system-update-policy-window-select', ['window'])"/>
                            <span class="helper"
                                  title="Install system update automatically within a daily maintenance window, for a
                                  maximum of 30 days">
                                Window
                            </span>
                        </label>
                    </div>
                    <div id="cosu-system-update-policy-window-select">
                        <div>
                            <ul class="message message-info">
                                <i class="icon fw fw-info"></i>
                                <a id="cosu-system-update-policy-window-select-msg">
                                    Below configuration of start time and end time are valid only when
                                    <b>window</b> option is selected.
                                </a>
                            </ul>
                        </div>
                        <div class="wr-input-control">
                            <label class="wr-input-label" for="cosu-system-update-policy-window-start-time">
                                Start Time
                                <span class="helper" title="Window start time for system update">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                            </label>
                            <select id="cosu-system-update-policy-window-start-time"
                                    class="form-control operationDataKeys"
                                    data-key="cosuSystemUpdatePolicyWindowStartTime" data-default="0">
                                <option value="1440" selected="selected">12 AM</option>
                                <option value="60">1 AM</option>
                                <option value="120">2 AM</option>
                                <option value="180">3 AM</option>
                                <option value="240">4 AM</option>
                                <option value="300">5 AM</option>
                                <option value="360">6 AM</option>
                                <option value="420">7 AM</option>
                                <option value="480">8 AM</option>
                                <option value="540">9 AM</option>
                                <option value="600">10 AM</option>
                                <option value="660">11 AM</option>
                                <option value="720">12 noon</option>
                                <option value="780">1 PM</option>
                                <option value="840">2 PM</option>
                                <option value="900">3 PM</option>
                                <option value="960">4 PM</option>
                                <option value="1020">5 PM</option>
                                <option value="1080">6 PM</option>
                                <option value="1140">7 PM</option>
                                <option value="1200">8 PM</option>
                                <option value="1260">9 PM</option>
                                <option value="1320">10 PM</option>
                                <option value="1380">11 PM</option>
                            </select>
                        </div>
                        <div class="wr-input-control">
                            <label class="wr-input-label" for="cosu-system-update-policy-window-end-time">
                                End Time
                                <span class="helper" title="Window end time for system update">
                                    <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                                </span>
                            </label>
                            <select id="cosu-system-update-policy-window-end-time"
                                    class="form-control operationDataKeys"
                                    data-key="cosuSystemUpdatePolicyWindowEndTime" data-default="0">
                                <option value="1440" selected="selected">12 AM</option>
                                <option value="60">1 AM</option>
                                <option value="120">2 AM</option>
                                <option value="180">3 AM</option>
                                <option value="240">4 AM</option>
                                <option value="300">5 AM</option>
                                <option value="360">6 AM</option>
                                <option value="420">7 AM</option>
                                <option value="480">8 AM</option>
                                <option value="540">9 AM</option>
                                <option value="600">10 AM</option>
                                <option value="660">11 AM</option>
                                <option value="720">12 Noon</option>
                                <option value="780">1 PM</option>
                                <option value="840">2 PM</option>
                                <option value="900">3 PM</option>
                                <option value="960">4 PM</option>
                                <option value="1020">5 PM</option>
                                <option value="1080">6 PM</option>
                                <option value="1140">7 PM</option>
                                <option value="1200">8 PM</option>
                                <option value="1260">9 PM</option>
                                <option value="1320">10 PM</option>
                                <option value="1380">11 PM</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- cosu-whitelist-applications -->
        <div class="wr-hidden-operation" data-operation="cosu-whitelisted-applications">
            <div class="panel panel-default operation-data" data-operation="cosu-whitelisted-applications"
                 data-operation-code="KIOSK_APPS">
                <div id="cosu-whitelisted-applications-heading" class="panel-heading" role="tab">
                    <h2 class="sub-title panel-title">
                        Whitelist Applications (COSU)
                        <label id="cosu-whitelisted-applications-lbl" class="wr-input-control switch"
                               data-toggle="collapse"
                               data-target="#cosu-whitelisted-applications-body">
                            <input type="checkbox"/>
                            <span class="helper"></span>
                            <span class="text"></span>
                        </label>
                    </h2>
                    <div class="panel-title-description">
                        this configurations can be used to set when system update take place in the COSU devices.
                    </div>
                </div>
                <div id="cosu-whitelisted-applications-body" class="panel-collapse panel-body collapse" role="tabpanel"
                     aria-labelledby="cosu-whitelisted-applications-body">
                    <hr/>
                    <div id="cosu-whitelisted-applications-feature-error-msg" class="alert alert-danger hidden"
                         role="alert">
                        <i class="icon fw fw-error"></i><span></span>
                    </div>

                    <div class="wr-input-control">
                        <label class="wr-input-label" for="cosu-whitelisted-applications">
                            Whitelisted Applications to enter Lock Task Mode
                            <span class="helper" title="Configuration information specific to a given third-party VPN
                            solution. This has to be input as key/value pairs.">
                                <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
                            </span>
                            <br>
                            <a href="#cosu-whitelisted-applications-grid" class="btn btn-secondary grid-input-add"
                               data-click-event="add-form">
                                <span class="icon fw-stack">
                                    <i class="fw fw-add fw-stack-1x"></i>
                                    <i class="fw fw-circle-outline fw-stack-2x"></i>
                                </span>
                                Add Application
                            </a>
                        </label>
                        <div id="cosu-whitelisted-applications"
                             class="operationDataKeys grouped-array-input multi-column-key-value-pair-array"
                             data-key="cosuWhitelistedApplications" data-column-count="2">
                            <table class="table table-responsive table-striped">
                                <thead>
                                <tr>
                                    <th>No:</th>
                                    <th>Application Name / Description</th>
                                    <th>Package Name</th>
                                    <th></th>
                                </tr>
                                </thead>
                                <tbody data-add-form-container="#cosu-whitelisted-applications-grid">
                                <tr data-help-text="add-form">
                                    <td colspan="4">
                                        No entries added yet.
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <table class="template hidden">
                                <tbody data-add-form="#cosu-whitelisted-applications-grid">
                                <tr data-add-form-element="clone">
                                    <td data-title="No:">
                                        <span class="index"></span>
                                    </td>
                                    <td data-title="Application Name / Description">
                                        <input type="text" class="form-control grid-input-text" data-child-key="appName"
                                               maxlength="100" data-default=""
                                               placeholder="[ Application Name / Description ]"/>
                                    </td>
                                    <td data-title="Package Name">
                                        <input type="text" class="form-control grid-input-text"
                                               data-child-key="packageName"
                                               maxlength="100" data-default="" placeholder="[ Package Name ]"/>
                                    </td>
                                    <td>
                                            <span class="list-group-item-actions">
                                                <a href="#cosu-whitelisted-applications-grid" class="grid-input-remove"
                                                   data-click-event="remove-form">
                                                    <span class="fw-stack helper" title="Remove Entry">
                                                        <i class="fw fw-circle-outline fw-stack-2x"></i>
                                                        <i class="fw fw-delete fw-stack-1x"></i>
                                                    </span>
                                                </a>
                                            </span>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>