2018-07-03 18:31:02 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="image_name" ng-class="$ctrl.labelClass" class="control-label text-left">Image</label>
|
|
|
|
<div ng-class="$ctrl.inputClass">
|
2017-11-20 13:34:14 +00:00
|
|
|
<input type="text" class="form-control" uib-typeahead="image for image in $ctrl.availableImages | filter:$viewValue | limitTo:5"
|
2018-07-03 18:31:02 +00:00
|
|
|
ng-model="$ctrl.image" name="image_name" placeholder="e.g. myImage:myTag" required>
|
2017-06-20 11:00:32 +00:00
|
|
|
</div>
|
2018-07-03 18:31:02 +00:00
|
|
|
<label for="image_registry" class="margin-sm-top control-label text-right" ng-class="$ctrl.labelClass">
|
2017-06-20 11:00:32 +00:00
|
|
|
Registry
|
|
|
|
</label>
|
2018-07-03 18:31:02 +00:00
|
|
|
<div ng-class="$ctrl.inputClass" class="margin-sm-top">
|
2017-11-20 13:34:14 +00:00
|
|
|
<select ng-options="registry as registry.Name for registry in $ctrl.availableRegistries" ng-model="$ctrl.registry" id="image_registry"
|
|
|
|
class="form-control"></select>
|
2017-06-20 11:00:32 +00:00
|
|
|
</div>
|
2018-07-03 18:31:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group" ng-show="$ctrl.form.image_name.$invalid">
|
2018-07-11 14:22:02 +00:00
|
|
|
<div class="col-sm-12 small text-warning">
|
2018-07-03 18:31:02 +00:00
|
|
|
<div ng-messages="$ctrl.form.image_name.$error">
|
|
|
|
<p ng-message="required"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Image name is required.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|