1 <cd-modal [modalRef]="activeModal">
3 class="modal-title">Move an image to trash</ng-container>
5 <ng-container class="modal-content">
11 <div class="modal-body">
12 <div class="alert alert-warning"
15 <span i18n>This image contains snapshot(s), which will prevent it
16 from being removed after moved to trash.</span>
19 <p i18n>To move <kbd>{{ imageSpecStr }}</kbd> to trash,
20 click <kbd>Move Image</kbd>. Optionally, you can pick an expiration date.</p>
22 <div class="form-group">
23 <label class="col-form-label"
25 i18n>Protection expires at</label>
27 placeholder="NOT PROTECTED"
32 formControlName="expiresAt"
34 <span class="invalid-feedback"
35 *ngIf="moveForm.showError('expiresAt', formDir, 'format')"
36 i18n>Wrong date format. Please use "YYYY-MM-DD HH:mm:ss".</span>
37 <span class="invalid-feedback"
38 *ngIf="moveForm.showError('expiresAt', formDir, 'expired')"
39 i18n>Protection has already expired. Please pick a future date or leave it empty.</span>
43 <div class="modal-footer">
44 <cd-submit-button i18n
46 (submitAction)="moveImage()">Move Image</cd-submit-button>
47 <cd-back-button [back]="activeModal.close"