Shu Muto 04c6e4433a Rename bay and baymodel for 'Soft StringFreeze' milestone
"bay" and "baymodel" is not common term.
This patch renames "bay" to "cluster", and "baymodel" to
"cluster template" for 'Soft StringFreeze'[1] in Newton
Release Schedule[2].

[1] Soft StringFreeze: Aug 29 - Sep 02
[2] https://releases.openstack.org/newton/schedule.html

For translation work, this patch should focus to changing
strings to be translated and should be merged soon.

So, until "cluster" and "cluster template" is implemented
into Magnum API, Magnum-UI uses bay and baymodel of magnumclient.

Change-Id: I0db5472c4f19638cc57116101b552ad21fe34651
Implements: blueprint rename-bay-to-cluster
2016-08-26 18:23:01 +09:00

68 lines
3.3 KiB
HTML

<div ng-controller="createClusterTemplateSpecController as ctrl">
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label class="control-label" for="cluster-template-image-id">
<translate>Image</translate>
<span class="hz-icon-required fa fa-asterisk"></span>
</label>
<select name="cluster-template-image-id" type="text" class="form-control" id="cluster-template-image-id"
ng-model="model.newClusterTemplateSpec.image_id" ng-required="true"
ng-options="image.id as image.name for image in ctrl.images">
</select>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="control-label" for="cluster-template-flavor-id" translate>Flavor</label>
<select name="cluster-template-flavor-id" type="text" class="form-control" id="cluster-template-flavor-id"
ng-model="model.newClusterTemplateSpec.flavor_id"
ng-options="nflavor.id as nflavor.name for nflavor in ctrl.nflavors">
</select>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="control-label" for="cluster-template-master-flavor-id" translate>Master Flavor</label>
<select name="cluster-template-master-flavor-id" type="text" class="form-control" id="cluster-template-master-flavor-id"
ng-model="model.newClusterTemplateSpec.master_flavor_id"
ng-options="mflavor.id as mflavor.name for mflavor in ctrl.mflavors">
</select>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="control-label" for="cluster-template-volume-driver" translate>Volume Driver</label>
<select name="cluster-template-volume-driver" type="text" class="form-control" id="cluster-template-volume-driver"
ng-model="model.newClusterTemplateSpec.volume_driver"
placeholder="{$ 'The volume driver name for instantiating container volume.'|translate $}"
ng-options="driver.name as driver.label for driver in model.newClusterTemplateSpec.volume_drivers">
</select>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="control-label" for="cluster-template-docker-volume-size" translate>
Docker Volume Size (GB)
</label>
<input name="cluster-template-docker-volume-size" type="number"
class="form-control" id="cluster-template-docker-volume-size"
ng-model="model.newClusterTemplateSpec.docker_volume_size" min="1"
placeholder="{$ 'Specify the size in GB for the docker volume'|translate $}">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="control-label" for="cluster-template-keypair-id">
<translate>Keypair</translate>
<span class="hz-icon-required fa fa-asterisk"></span>
</label>
<select name="cluster-template-keypair-id" type="text" class="form-control" id="cluster-template-keypair-id"
ng-model="model.newClusterTemplateSpec.keypair_id" ng-required="true"
ng-options="keypair.id as keypair.name for keypair in ctrl.keypairs">
</select>
</div>
</div>
</div>
</div>