Merge "Add a prompt on the Create Volume form"

This commit is contained in:
Zuul 2019-02-12 19:58:04 +00:00 committed by Gerrit Code Review
commit fe0b764faa

View File

@ -48,12 +48,16 @@
</div> </div>
</div> </div>
<div class="col-xs-6"> <div class="col-xs-6">
<div class="form-group"> <div class="form-group" ng-class="{'has-error':volumeForm['volume-size'].$invalid && volumeForm['volume-size'].$dirty}">
<label for="volume-size" class="control-label"> <label for="volume-size" class="control-label">
<span translate>Size (GiB)</span> <span translate>Size (GiB)</span>
<span class="hz-icon-required fa fa-asterisk"></span> <span class="hz-icon-required fa fa-asterisk"></span>
</label> </label>
<input name="volume-size" class="form-control" id="volume-size" type="number" min="1" ng-required="true" ng-model="createVolumeCtrl.volume.size"> <input name="volume-size" class="form-control" id="volume-size" type="number" min="1" ng-required="true" ng-model="createVolumeCtrl.volume.size">
<p class="help-block alert alert-danger"
ng-show="volumeForm['volume-size'].$invalid && volumeForm['volume-size'].$dirty">
<translate>Volume size is required and must be positive integer</translate>
</p>
</div> </div>
</div> </div>
</div> </div>