-<cd-modal [modalRef]="modalRef">
+<cd-modal [modalRef]="activeModal"
+ pageURL="mirroring">
<ng-container i18n
class="modal-title">Edit pool mirror mode</ng-container>
<kbd>Update</kbd>.</ng-container>
</p>
- <div class="form-group"
- [ngClass]="{'has-error': editModeForm.showError('mirrorMode', formDir)}">
- <label class="control-label"
+ <div class="form-group">
+ <label class="col-form-label"
for="mirrorMode">
<span i18n>Mode</span>
</label>
<option *ngFor="let mirrorMode of mirrorModes"
[value]="mirrorMode.id">{{ mirrorMode.name }}</option>
</select>
- <span class="help-block"
+ <span class="invalid-feedback"
*ngIf="editModeForm.showError('mirrorMode', formDir, 'cannotDisable')"
i18n>Peer clusters must be removed prior to disabling mirror.</span>
</div>
</div>
<div class="modal-footer">
- <div class="button-group text-right">
- <cd-submit-button i18n
- [form]="editModeForm"
- (submitAction)="update()">Update</cd-submit-button>
- <cd-back-button [back]="modalRef.hide"
- name="Cancel"
- i18n-name>
- </cd-back-button>
- </div>
+ <cd-form-button-panel (submitActionEvent)="update()"
+ [form]="editModeForm"
+ [submitText]="actionLabels.UPDATE"></cd-form-button-panel>
</div>
</form>
</ng-container>