diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.html')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.html new file mode 100644 index 000000000..7c761f8f4 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.html @@ -0,0 +1,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 + <kbd>All</kbd> + or one pool and click + <kbd>Purge</kbd>. </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> |