|
@@ -20,99 +20,101 @@
|
|
|
~ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
-->
|
|
|
|
|
|
-<div class="ias-dialog" ng-switch="$ctrl.status">
|
|
|
- <div class="ias-dialog-container" ng-switch-when="select">
|
|
|
- <div class="ias-dialog-label">
|
|
|
- <div class="ias-title" ng-bind="'Title_VerificationSend' | translate"></div>
|
|
|
- </div>
|
|
|
- <div class="ias-dialog-content">
|
|
|
- <p ng-bind="'Long_Title_VerificationSend' | translate"></p>
|
|
|
-
|
|
|
- <ias-button ng-click="$ctrl.selectVerificationMethod(method.name)"
|
|
|
- ng-repeat="method in $ctrl.availableVerificationMethods"
|
|
|
- style="margin-right: 3px;">
|
|
|
- {{ method.label | translate }}
|
|
|
- </ias-button>
|
|
|
+<div class="ias-styles-root">
|
|
|
+ <div class="ias-dialog" ng-switch="$ctrl.status">
|
|
|
+ <div class="ias-dialog-container" ng-switch-when="select">
|
|
|
+ <div class="ias-dialog-label">
|
|
|
+ <div class="ias-title" ng-bind="'Title_VerificationSend' | translate"></div>
|
|
|
+ </div>
|
|
|
+ <div class="ias-dialog-content">
|
|
|
+ <p ng-bind="'Long_Title_VerificationSend' | translate"></p>
|
|
|
|
|
|
- </div>
|
|
|
- <div class="ias-actions">
|
|
|
- <ias-button ng-click="close()">{{ 'Button_Cancel' | translate }}</ias-button>
|
|
|
- </div>
|
|
|
+ <ias-button ng-click="$ctrl.selectVerificationMethod(method.name)"
|
|
|
+ ng-repeat="method in $ctrl.availableVerificationMethods"
|
|
|
+ style="margin-right: 3px;">
|
|
|
+ {{ method.label | translate }}
|
|
|
+ </ias-button>
|
|
|
|
|
|
- <ias-button class="ias-icon-button ias-dialog-cancel-button"
|
|
|
- id="close-icon"
|
|
|
- ng-attr-title="{{ 'Button_CloseWindow' | translate }}"
|
|
|
- ng-click="close()">
|
|
|
- <ias-icon icon="close_thick"></ias-icon>
|
|
|
- </ias-button>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="ias-actions">
|
|
|
+ <ias-button ng-click="close()">{{ 'Button_Cancel' | translate }}</ias-button>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="ias-dialog-container" ng-switch-when="verify">
|
|
|
- <div class="ias-dialog-label">
|
|
|
- <div class="ias-title" ng-bind="'Title_ValidateCode' | translate"></div>
|
|
|
+ <ias-button class="ias-icon-button ias-dialog-cancel-button"
|
|
|
+ id="close-icon"
|
|
|
+ ng-attr-title="{{ 'Button_CloseWindow' | translate }}"
|
|
|
+ ng-click="close()">
|
|
|
+ <ias-icon icon="close_thick"></ias-icon>
|
|
|
+ </ias-button>
|
|
|
</div>
|
|
|
|
|
|
- <div class="ias-dialog-content" ng-switch="$ctrl.verificationMethod">
|
|
|
- <form>
|
|
|
- <div ng-switch-when="ATTRIBUTES">
|
|
|
- <div class="ias-input-container" ng-repeat="input in $ctrl.inputs">
|
|
|
- <label ng-attr-for="{{input.name}}" ng-bind="input.label"></label>
|
|
|
- <input autofocus
|
|
|
- autocomplete="off"
|
|
|
- ng-attr-id="{{input.name}}"
|
|
|
- type="text"
|
|
|
- ng-model="$ctrl.formData[input.name]">
|
|
|
+ <div class="ias-dialog-container" ng-switch-when="verify">
|
|
|
+ <div class="ias-dialog-label">
|
|
|
+ <div class="ias-title" ng-bind="'Title_ValidateCode' | translate"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="ias-dialog-content" ng-switch="$ctrl.verificationMethod">
|
|
|
+ <form>
|
|
|
+ <div ng-switch-when="ATTRIBUTES">
|
|
|
+ <div class="ias-input-container" ng-repeat="input in $ctrl.inputs">
|
|
|
+ <label ng-attr-for="{{input.name}}" ng-bind="input.label"></label>
|
|
|
+ <input autofocus
|
|
|
+ autocomplete="off"
|
|
|
+ ng-attr-id="{{input.name}}"
|
|
|
+ type="text"
|
|
|
+ ng-model="$ctrl.formData[input.name]">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div ng-switch-when="EMAIL|SMS" ng-switch-when-separator="|">
|
|
|
- <div class="ias-input-container">
|
|
|
- <label ng-bind="'Display_TokenDestination' | translate"></label>
|
|
|
- <input type="text" ng-value="$ctrl.tokenData.destination" readonly>
|
|
|
+ <div ng-switch-when="EMAIL|SMS" ng-switch-when-separator="|">
|
|
|
+ <div class="ias-input-container">
|
|
|
+ <label ng-bind="'Display_TokenDestination' | translate"></label>
|
|
|
+ <input type="text" ng-value="$ctrl.tokenData.destination" readonly>
|
|
|
+ </div>
|
|
|
+ <div class="ias-input-container">
|
|
|
+ <label>Token</label>
|
|
|
+ <input autofocus autocomplete="off" id="token" type="text" ng-model="$ctrl.formData.code">
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
- <div class="ias-input-container">
|
|
|
- <label>Token</label>
|
|
|
- <input autofocus autocomplete="off" id="token" type="text" ng-model="$ctrl.formData.code">
|
|
|
+ <div ng-switch-when="OTP">
|
|
|
+ <p ng-bind="'Display_HelpdeskOtpValidation' | translate"></p>
|
|
|
+ <div class="ias-input-container">
|
|
|
+ <label>Code</label>
|
|
|
+ <input autofocus autocomplete="off" id="code" type="text" ng-model="$ctrl.formData.code">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
- </div>
|
|
|
- <div ng-switch-when="OTP">
|
|
|
- <p ng-bind="'Display_HelpdeskOtpValidation' | translate"></p>
|
|
|
- <div class="ias-input-container">
|
|
|
- <label>Code</label>
|
|
|
- <input autofocus autocomplete="off" id="code" type="text" ng-model="$ctrl.formData.code">
|
|
|
+ <div class="aligned-input">
|
|
|
+ <ias-button ng-click="$ctrl.sendVerificationData()" ng-disabled="$ctrl.verificationStatus==='passed'">
|
|
|
+ {{ 'Button_Verify' | translate }}
|
|
|
+ </ias-button>
|
|
|
+ <div class="loading-gif-25" ng-if="$ctrl.verificationStatus==='wait'"></div>
|
|
|
+ <ias-icon icon="status_ok_thick" style="color:#37c26a;" class="ias-success" ng-if="$ctrl.verificationStatus==='passed'"></ias-icon>
|
|
|
+ <ias-icon icon="status_error_thick" style="color:#e50000;" class="ias-error" ng-if="$ctrl.verificationStatus==='failed'"></ias-icon>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ <p ng-bind="'Display_InvalidVerification' | translate" ng-if="$ctrl.verificationStatus==='failed'"></p>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="aligned-input">
|
|
|
- <ias-button ng-click="$ctrl.sendVerificationData()" ng-disabled="$ctrl.verificationStatus==='passed'">
|
|
|
- {{ 'Button_Verify' | translate }}
|
|
|
- </ias-button>
|
|
|
- <div class="loading-gif-25" ng-if="$ctrl.verificationStatus==='wait'"></div>
|
|
|
- <ias-icon icon="status_ok_thick" style="color:#37c26a;" class="ias-success" ng-if="$ctrl.verificationStatus==='passed'"></ias-icon>
|
|
|
- <ias-icon icon="status_error_thick" style="color:#e50000;" class="ias-error" ng-if="$ctrl.verificationStatus==='failed'"></ias-icon>
|
|
|
- </div>
|
|
|
- <p ng-bind="'Display_InvalidVerification' | translate" ng-if="$ctrl.verificationStatus==='failed'"></p>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
+ <div class="ias-actions">
|
|
|
+ <ias-button ng-bind="'Display_ViewDetails' | translate"
|
|
|
+ ng-disabled="$ctrl.verificationStatus!=='passed'"
|
|
|
+ ng-click="$ctrl.viewDetails()"
|
|
|
+ ng-if="!$ctrl.isDetailsView"></ias-button>
|
|
|
+ <ias-button ng-disabled="$ctrl.verificationStatus!=='passed'"
|
|
|
+ ng-click="$ctrl.clickOkButton()"
|
|
|
+ ng-if="$ctrl.isDetailsView">
|
|
|
+ {{ 'Button_OK' | translate }}
|
|
|
+ </ias-button>
|
|
|
+ <ias-button ng-click="close()">{{ 'Button_Cancel' | translate }}</ias-button>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="ias-actions">
|
|
|
- <ias-button ng-bind="'Display_ViewDetails' | translate"
|
|
|
- ng-disabled="$ctrl.verificationStatus!=='passed'"
|
|
|
- ng-click="$ctrl.viewDetails()"
|
|
|
- ng-if="!$ctrl.isDetailsView"></ias-button>
|
|
|
- <ias-button ng-disabled="$ctrl.verificationStatus!=='passed'"
|
|
|
- ng-click="$ctrl.clickOkButton()"
|
|
|
- ng-if="$ctrl.isDetailsView">
|
|
|
- {{ 'Button_OK' | translate }}
|
|
|
+ <ias-button class="ias-icon-button ias-dialog-cancel-button"
|
|
|
+ id="close-icon"
|
|
|
+ ng-attr-title="{{ 'Button_CloseWindow' | translate }}"
|
|
|
+ ng-click="close()">
|
|
|
+ <ias-icon icon="close_thick"></ias-icon>
|
|
|
</ias-button>
|
|
|
- <ias-button ng-click="close()">{{ 'Button_Cancel' | translate }}</ias-button>
|
|
|
</div>
|
|
|
-
|
|
|
- <ias-button class="ias-icon-button ias-dialog-cancel-button"
|
|
|
- id="close-icon"
|
|
|
- ng-attr-title="{{ 'Button_CloseWindow' | translate }}"
|
|
|
- ng-click="close()">
|
|
|
- <ias-icon icon="close_thick"></ias-icon>
|
|
|
- </ias-button>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</div>
|