diff options
Diffstat (limited to 'testapi/3rd_party/static/testapi-ui/shared')
-rw-r--r-- | testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModal.html | 10 | ||||
-rw-r--r-- | testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModalFactory.js | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModal.html b/testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModal.html index 82478a5..e5397e0 100644 --- a/testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModal.html +++ b/testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModal.html @@ -1,11 +1,21 @@ <div class="modal-header"><h3 class="modal-title">Confirm</h3></div> <div class="modal-body"> + <div class="confirm" ng-class="{ 'hidden': confirmModal.data.text=='Delete' }"> <div class="form-group"> <label for="confirmText">{{confirmModal.data.text}}:</label> <textarea type="text" class="form-control" rows="5" ng-model="confirmModal.inputText" id="confirmText"> </textarea> </div> + </div> + <div class="Delete" ng-class="{ 'hidden': confirmModal.data.text!='Delete' }"> + <div class="form-group"> + <label for="confirmText"> You are about to delete.</label> + <br> + Do you want to proceed? + </div> + </div> + </div> <div class="modal-footer"> <button class="btn btn-primary" ng-click="confirmModal.confirm()">Ok</button> diff --git a/testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModalFactory.js b/testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModalFactory.js index 76c74df..aba205e 100644 --- a/testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModalFactory.js +++ b/testapi/3rd_party/static/testapi-ui/shared/alerts/confirmModalFactory.js @@ -13,7 +13,7 @@ function confirmModal($uibModal) { return function(text, successHandler) { $uibModal.open({ - templateUrl: '/shared/alerts/confirmModal.html', + templateUrl: '/testapi-ui/shared/alerts/confirmModal.html', controller: 'CustomConfirmModalController as confirmModal', size: 'md', resolve: { |