Add a prompt on the Create Volume form

on create volume form,
do not enter the volume size and no error message shown

Change-Id: I1b3c0d2cdddb77d5a3797d1af8e23299ed8f131b
Closes-Bug: #1812965
This commit is contained in:
pengyuesheng 2019-01-23 16:32:36 +08:00
parent fbcc378e3e
commit 07ec6deb59

View File

@ -48,12 +48,16 @@
</div>
</div>
<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">
<span translate>Size (GiB)</span>
<span class="hz-icon-required fa fa-asterisk"></span>
</label>
<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>