re base code
[sdc.git] / catalog-ui / src / app / view-models / modals / confirmation-modal / confirmation-modal-view.html
1 <ng1-modal modal="modalInstanceConfirmation" type="classic" class="w-sdc-modal-confirmation modal-type-{{confirmationModalModel.type}}" header="{{confirmationModalModel.title}}" show-close-button="true">
2     <form novalidate class="w-sdc-form" name="editForm">
3         <label class="i-sdc-form-label required w-sdc-modal-label" data-ng-bind-html="confirmationModalModel.message"></label>
4
5         <div class="i-sdc-form-item">
6             <textarea class="w-sdc-modal-body-comment"
7                       data-tests-id="checkindialog"
8                       autofocus="autofocus"
9                       data-ng-show="confirmationModalModel.showComment===true"
10                       data-ng-model="comment.text"
11                       placeholder="Comment..."
12                       maxlength="256"
13                       data-required
14                       name="comment1"
15                       data-ng-pattern="commentValidationPattern"
16                       data-ng-maxlength="256"></textarea>
17
18             <div class="input-error" data-ng-show="editForm.comment1.$dirty && editForm.comment1.$invalid">
19                 <span ng-show="editForm.comment1.$error.pattern" translate="VALIDATION_ERROR_SPECIAL_CHARS_NOT_ALLOWED"></span>
20                 <span ng-show="editForm.comment1.$error.required" translate="VALIDATION_ERROR_REQUIRED" translate-values="{'field': 'Comment' }"></span>
21             </div>
22         </div>
23     </form>
24     <div class="w-sdc-modal-footer classic">
25         <button class="tlv-btn {{okButtonColor}}" data-tests-id="OK" data-ng-click="ok()" data-ng-disabled="confirmationModalModel.showComment===true && (!comment.text || comment.text && comment.text.length===0)">OK</button>
26         <button class="tlv-btn grey" data-ng-if="hideCancelButton===false" data-tests-id="Cancel" data-ng-click="cancel()" >Cancel</button>
27         <!--<button class="tlv-btn blue add-property-add-another" data-ng-if="isNew" data-ng-click="saveAndAnother()" type="reset" data-ng-disabled="editForm.$invalid">Add Another</button>-->
28     </div>
29 </ng1-modal>