summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.html
blob: 7c761f8f48e0f2cbbafdaf0d708ece96cb0ecb9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<cd-modal [modalRef]="activeModal">
  <ng-container i18n
                class="modal-title">Purge Trash</ng-container>

  <ng-container class="modal-content">
    <form name="purgeForm"
          class="form"
          #formDir="ngForm"
          [formGroup]="purgeForm"
          novalidate>
      <div class="modal-body">
        <p i18n>To purge, select&nbsp;
          <kbd>All</kbd>&nbsp;
          or one pool and click&nbsp;
          <kbd>Purge</kbd>.&nbsp;</p>

        <div class="form-group">
          <label class="col-form-label mx-auto"
                 i18n>Pool:</label>
          <input class="form-control"
                 type="text"
                 placeholder="Pool name..."
                 i18n-placeholder
                 formControlName="poolName"
                 *ngIf="!poolPermission.read">
          <select id="poolName"
                  name="poolName"
                  class="form-control"
                  formControlName="poolName"
                  *ngIf="poolPermission.read">
            <option value=""
                    i18n>All</option>
            <option *ngFor="let pool of pools"
                    [value]="pool">{{ pool }}</option>
          </select>
        </div>
      </div>

      <div class="modal-footer">
        <cd-form-button-panel (submitActionEvent)="purge()"
                              [form]="purgeForm"
                              [submitText]="actionLabels.PURGE"></cd-form-button-panel>
      </div>
    </form>
  </ng-container>
</cd-modal>