Mateusz Kowalski 40c8338e48 Allow keypair in cluster creation
The patch introduces the same functionality as the command line
interface.  When the template contains keypair, user can either provide
a new keypair for the cluster or inherit one from the template. When
template has no keypair attached, user has to provide a keypair for the
cluster, otherwise the error will be returned (exactly as for the CLI).

Closes-Bug: #1645754
Change-Id: I07c43be68022492f3c59b391ce6c31efc7b0aa79
2016-12-02 13:54:08 +01:00

25 lines
1.3 KiB
HTML

<div ng-controller="createClusterMiscController as ctrl">
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label class="control-label" for="cluster-discovery-url" translate>Discovery URL</label>
<input name="cluster-discovery-url" type="text" class="form-control"
ng-model="model.newClusterSpec.discovery_url" id="cluster-discovery-url"
placeholder="{$ 'Specifies custom discovery url for node discovery.'|translate $}">
</div>
<div class="form-group">
<label class="control-label" for="cluster-timeout" translate>Timeout</label>
<input name="cluster-timeout" type="number" min="0" class="form-control"
ng-model="model.newClusterSpec.create_timeout" id="cluster-timeout"
placeholder="{$ 'The timeout for cluster creation in minutes. Set to 0 for no timeout. The default is no timeout.'|translate $}">
</div>
<div class="form-group">
<label class="control-label" for="cluster-keypair" translate>Keypair</label>
<select name="cluster-keypair" type="text" class="form-control" id="cluster-keypair"
ng-model="model.newClusterSpec.keypair" ng-required="false"
ng-options="keypair.id as keypair.name for keypair in ctrl.keypairs">
</select>
</div>
</div>
</div>
</div>