7dc721fd79
The existing functionality for portgroups in the node-details/configuration tab has been augmented with the capability to create portgroups. Clicking on the menu button above the portgroup table will launch a modal dialog that guides the user in entering the parameters required to create a portgroup. Change-Id: Ieef7fff4f29318ae74e11559dc69e6317c3c25d6
38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
<div class="modal-header" modal-draggable>
|
|
<button type="button"
|
|
class="close"
|
|
ng-click="$dismiss()"
|
|
aria-hidden="true"
|
|
aria-label="Close">
|
|
<span aria-hidden="true" class="fa fa-times"></span>
|
|
</button>
|
|
<h3 class="modal-title">{$ ::ctrl.modalTitle $}</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form id="CreatePortgroupForm" name="CreatePortgroupForm">
|
|
<form-field field="ctrl.address" form="CreatePortgroupForm"></form-field>
|
|
<form-field field="ctrl.name" form="CreatePortgroupForm"></form-field>
|
|
<form-field field="ctrl.standalone_ports_supported"
|
|
form="CreatePortgroupForm"></form-field>
|
|
<form-field field="ctrl.mode" form="CreatePortgroupForm"></form-field>
|
|
</form>
|
|
|
|
<property-collection-editor collection="ctrl.properties"></property-collection-editor>
|
|
<property-collection-editor collection="ctrl.extra"></property-collection-editor>
|
|
</div>
|
|
<!--modal footer-->
|
|
<div class="modal-footer ng-scope">
|
|
<button class="btn btn-default" ng-click="ctrl.cancel()">
|
|
<span class="fa fa-close"></span>
|
|
<span class="ng-scope" translate>Cancel</span>
|
|
</button>
|
|
<button type="submit"
|
|
ng-disabled="CreatePortgroupForm.$invalid ||
|
|
!ctrl.properties.complete() ||
|
|
!ctrl.extra.complete()"
|
|
ng-click="ctrl.submit()"
|
|
class="btn btn-primary">
|
|
{$ ::ctrl.submitButtonTitle $}
|
|
</button>
|
|
</div>
|