ironic-ui/ironic_ui/static/dashboard/admin/ironic/clean-node/clean-node.html
Peter Piela 736c2dab54 Add support for manual cleaning of nodes
- The action list associated with a node in manageable state will have
a "Clean" item.
- When the clean action is initiated the user is prompted with a modal
dialog in which he or she enters or copies a set of cleaning steps
in JSON format.
- Basic validation is performed on the JSON. The user is able to
submit the cleaning request only when validation is successful.
- Cleaning is not currently available as a batch action.

Change-Id: I2af9385e2d9532a9ec46993d65f8c510e419b6c9
Closes-Bug: #1648559
2017-02-14 11:56:25 -05:00

42 lines
1.2 KiB
HTML

<div class="modal-header" modal-draggable>
<h3 class="modal-title" translate>Clean Node</h3>
</div>
<div class="modal-body clearfix">
<div class="content">
<div translate class="subtitle">Provide a list of cleaning steps in JSON format</div>
<div class="form-group"
ng-init="cleanSteps=''">
<div class="form-field">
<textarea type="text"
class="form-control input-sm"
ng-model="cleanSteps"
ng-change="ctrl.errMsg=''"
auto-focus
rows="8"
required
placeholder=""/>
</div>
</div>
<div uib-alert
ng-hide="ctrl.errMsg === ''"
ng-class="'alert-danger'">
{$ ctrl.errMsg $}
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default secondary"
type="button"
ng-click="ctrl.cancel()"
translate>
Cancel
</button>
<button class="btn btn-primary"
type="button"
ng-disabled="cleanSteps === '' || ctrl.errMsg !== ''"
ng-click="ctrl.clean(cleanSteps)"
translate>
Clean node
</button>
</div>