]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
6c26f4a731c10d7a9a9e062a9a199f9ccc639028
[ceph.git] /
1 <cd-modal>
2   <ng-container i18n
3                 class="modal-title">Purge Trash</ng-container>
4
5   <ng-container class="modal-content">
6     <form name="purgeForm"
7           class="form"
8           #formDir="ngForm"
9           [formGroup]="purgeForm"
10           novalidate>
11       <div class="modal-body">
12         <p>
13           <ng-container i18n>To purge, select one or All images and click</ng-container>&nbsp;
14           <kbd i18n>Purge Trash</kbd>.&nbsp;
15         </p>
16
17         <div class="form-group">
18           <label class="col-form-label mx-auto"
19                  i18n>Pool:</label>
20           <input class="form-control"
21                  type="text"
22                  placeholder="Pool name..."
23                  i18n-placeholder
24                  formControlName="poolName"
25                  *ngIf="!poolPermission.read">
26           <select id="poolName"
27                   name="poolName"
28                   class="form-control custom-select"
29                   formControlName="poolName"
30                   *ngIf="poolPermission.read">
31             <option value=""
32                     i18n>All</option>
33             <option *ngFor="let pool of pools"
34                     [value]="pool">{{ pool }}</option>
35           </select>
36         </div>
37       </div>
38
39       <div class="modal-footer">
40         <div class="button-group text-right">
41           <cd-submit-button id="purgeFormButton"
42                             [form]="purgeForm"
43                             (submitAction)="purge()"
44                             i18n>Purge Trash</cd-submit-button>
45           <cd-back-button [back]="modalRef.hide"
46                           name="Cancel"
47                           i18n-name>
48           </cd-back-button>
49         </div>
50       </div>
51     </form>
52   </ng-container>
53 </cd-modal>