3 class=
"modal-title">Move an image to trash
</ng-container>
5 <ng-container class=
"modal-content">
11 <div class=
"modal-body">
12 <p i18n
>To move
<kbd>{{ poolName }}/{{ imageName }}
</kbd> to trash,
13 click
<kbd>Move Image
</kbd>. Optionally, you can pick an expiration date.
</p>
15 <div class=
"form-group"
16 [ngClass]=
"{'has-error': moveForm.showError('expiresAt', formDir)}">
18 i18n
>Protection expires at
</label>
20 placeholder=
"NOT PROTECTED"
25 formControlName=
"expiresAt"
27 <span class=
"help-block"
28 *
ngIf=
"moveForm.showError('expiresAt', formDir, 'format')"
29 i18n
>Wrong date format. Please use
"YYYY-MM-DD HH:mm:ss".
</span>
30 <span class=
"help-block"
31 *
ngIf=
"moveForm.showError('expiresAt', formDir, 'expired')"
32 i18n
>Protection has already expired. Please pick a future date or leave it empty.
</span>
36 <div class=
"modal-footer">
37 <div class=
"button-group text-right">
38 <cd-submit-button i18n
40 (submitAction)=
"moveImage()">Move Image
</cd-submit-button>
41 <cd-back-button [back]=
"modalRef.hide"