1*afc8a799Smiramurali23<div class="uib-modal__content  modal__local-users-settings">
2*afc8a799Smiramurali23  <div class="modal-header">
3*afc8a799Smiramurali23    <h2 class="modal-title" id="dialog_label">Account policy settings</h2>
4*afc8a799Smiramurali23    <button type="button" class="btn  btn--close  float-right" ng-click="$dismiss()" aria-label="Close">
5*afc8a799Smiramurali23      <icon file="icon-close.svg" aria-hidden="true"></icon>
6*afc8a799Smiramurali23    </button>
7*afc8a799Smiramurali23  </div>
8*afc8a799Smiramurali23  <form name="form">
9*afc8a799Smiramurali23    <div class="modal-body">
10*afc8a799Smiramurali23      <div class="row">
11*afc8a799Smiramurali23        <div class="column medium-6">
12*afc8a799Smiramurali23            <!-- Max login attempts -->
13*afc8a799Smiramurali23            <div class="field-group-container">
14*afc8a799Smiramurali23              <label for="maxLogin">Max failed login attempts</label>
15*afc8a799Smiramurali23              <p class="label__helper-text">Value must be between <span class="nowrap">0 – 65535</span></p>
16*afc8a799Smiramurali23              <input id="maxLogin"
17*afc8a799Smiramurali23                     name="maxLogin"
18*afc8a799Smiramurali23                     type="number"
19*afc8a799Smiramurali23                     required
20*afc8a799Smiramurali23                     min="0"
21*afc8a799Smiramurali23                     max="65535"
22*afc8a799Smiramurali23                     ng-model="modalCtrl.settings.maxLogin" />
23*afc8a799Smiramurali23              <div ng-if="form.maxLogin.$invalid && form.maxLogin.$dirty" class="form__validation-message">
24*afc8a799Smiramurali23                <span ng-show="form.maxLogin.$error.required">
25*afc8a799Smiramurali23                  Field is required</span>
26*afc8a799Smiramurali23                <span ng-show="form.maxLogin.$error.min || form.maxLogin.$error.max">
27*afc8a799Smiramurali23                  Value must be between <span class="nowrap">1 - 65535</span></span>
28*afc8a799Smiramurali23              </div>
29*afc8a799Smiramurali23            </div>
30*afc8a799Smiramurali23        </div>
31*afc8a799Smiramurali23        <div class="column medium-6">
32*afc8a799Smiramurali23          <!-- User unlock method -->
33*afc8a799Smiramurali23          <fieldset class="field-group-container">
34*afc8a799Smiramurali23            <legend>User unlock method</legend>
35*afc8a799Smiramurali23            <!-- Automatic radio option -->
36*afc8a799Smiramurali23            <label class="radio-label">
37*afc8a799Smiramurali23              <input name="lockoutMethod"
38*afc8a799Smiramurali23                     type="radio"
39*afc8a799Smiramurali23                     ng-value="1"
40*afc8a799Smiramurali23                     ng-model="modalCtrl.settings.lockoutMethod">
41*afc8a799Smiramurali23              Automatic after timeout
42*afc8a799Smiramurali23            </label>
43*afc8a799Smiramurali23            <!-- Automatic timeout value -->
44*afc8a799Smiramurali23            <div class="field-group-container  radio-option__input-field-group">
45*afc8a799Smiramurali23              <label for="lockoutMethod1">Timeout duration (seconds)</label>
46*afc8a799Smiramurali23              <p class="label__helper-text" id="lockoutMethod1Helper">Must be at least 1</p>
47*afc8a799Smiramurali23              <input id="lockoutMethod1"
48*afc8a799Smiramurali23                     name="timeoutDuration"
49*afc8a799Smiramurali23                     type="number"
50*afc8a799Smiramurali23                     aria-describedby="lockoutMethod1Helper"
51*afc8a799Smiramurali23                     ng-min="modalCtrl.settings.lockoutMethod ? 1 : null"
52*afc8a799Smiramurali23                     ng-disabled="!modalCtrl.settings.lockoutMethod"
53*afc8a799Smiramurali23                     ng-required="modalCtrl.settings.lockoutMethod"
54*afc8a799Smiramurali23                     ng-model="modalCtrl.settings.timeoutDuration"/>
55*afc8a799Smiramurali23              <div ng-if="form.timeoutDuration.$invalid && form.timeoutDuration.$touched" class="form__validation-message">
56*afc8a799Smiramurali23                <span ng-show="form.timeoutDuration.$error.required">
57*afc8a799Smiramurali23                  Field is required</span>
58*afc8a799Smiramurali23                <span ng-show="form.timeoutDuration.$error.min">
59*afc8a799Smiramurali23                  Value must be at least 1</span>
60*afc8a799Smiramurali23              </div>
61*afc8a799Smiramurali23            </div>
62*afc8a799Smiramurali23            <!-- Manual radio option -->
63*afc8a799Smiramurali23            <label class="radio-label">
64*afc8a799Smiramurali23              <input name="lockoutMethod"
65*afc8a799Smiramurali23                     type="radio"
66*afc8a799Smiramurali23                     ng-value="0"
67*afc8a799Smiramurali23                     ng-model="modalCtrl.settings.lockoutMethod">
68*afc8a799Smiramurali23              Manual
69*afc8a799Smiramurali23            </label>
70*afc8a799Smiramurali23          </fieldset>
71*afc8a799Smiramurali23        </div>
72*afc8a799Smiramurali23      </div>
73*afc8a799Smiramurali23    </div>
74*afc8a799Smiramurali23    <div class="modal-footer">
75*afc8a799Smiramurali23      <button class="btn btn-secondary" ng-click="$dismiss()" type="button">Cancel</button>
76*afc8a799Smiramurali23      <button class="btn btn-primary"
77*afc8a799Smiramurali23              type="submit"
78*afc8a799Smiramurali23              ng-click="$close(form)"
79*afc8a799Smiramurali23              ng-disabled="form.$invalid || form.$pristine"
80*afc8a799Smiramurali23              ng-class="{'disabled': form.$invalid}">
81*afc8a799Smiramurali23        Save
82*afc8a799Smiramurali23      </button>
83*afc8a799Smiramurali23    </div>
84*afc8a799Smiramurali23  </form>
85*afc8a799Smiramurali23</div>
86