heat-dashboard/heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/resources/os__neutron__floatingipassociation/os__neutron__floatingipassociation.html
Xinni Ge 52f2e318ad Add unittests for template generator angular
The following changes have been made.
 - Test cases for common components and individual resources.
 - Setup karma + jasmine test environment.
 - Setup eslint environment and rules.
 - Code style adjustment to satisfiy eslint rules.

Change-Id: Icb3e48be11beaebc4e410644c62e0df86b345207
2017-10-26 09:55:53 +09:00

45 lines
2.1 KiB
HTML

<md-tabs md-dynamic-height md-stretch-tabs="always" md-border-bottom>
<md-tab label="Properties" >
<md-content layout-padding>
<md-input-container class="md-block" flex-gt-xs>
<label>Floating IP</label>
<md-select ng-model="$ctrl.floatingipassociation.floatingip_id" required name="floatingip_id" ng-disabled='$ctrl.disable.floatingip_id'>
<md-option ng-repeat="fip in update.floatingips" ng-value="fip.id">
{$ fip.id $}
</md-option>
</md-select>
<div ng-messages="$ctrl.formReference.floatingip_id.$error" role="alert" multiple>
<div ng-message="required" class="my-message">You must supply a floating IP.</div>
</div>
</md-input-container>
<md-input-container class="md-block" flex-gt-xs>
<label>Port ID</label>
<md-select ng-model="$ctrl.floatingipassociation.port_id" required name="port_id" ng-disabled='$ctrl.disable.port_id'>
<md-option ng-repeat="port in update.ports" ng-value="port.id">
{$ port.name $}
</md-option>
</md-select>
<div ng-messages="$ctrl.formReference.port_id.$error" role="alert" multiple>
<div ng-message="required" class="my-message">You must supply a port.</div>
</div>
</md-input-container>
<md-input-container class="md-block" flex-gt-xs>
<label>Fixed IP Address</label>
<input ng-model="$ctrl.floatingipassociation.fixed_ip_address" name="fixed_ip_address" ng-pattern="validate_ip_address"/>
<div ng-messages="$ctrl.formReference.fixed_ip_address.$error" role="alert" multiple>
<div ng-message="pattern" class="my-message">Please input a valid IP address.</div>
</div>
</md-input-container>
</md-content>
</md-tab>
<md-tab label="Depends on">
<md-content layout-padding>
<depends-on dependson='dependson'></depends-on>
</md-content>
</md-tab>
</md-tabs>