Fixes validation of input form. Improved error message
This commit is contained in:
parent
d78846352f
commit
a76de35bb0
2 changed files with 10 additions and 7 deletions
|
|
@ -649,9 +649,10 @@
|
|||
<label for="amount">Amount
|
||||
<small ng-hide="!sendForm.amount.$pristine">required</small>
|
||||
<small class="is-valid" ng-show="!sendForm.amount.$invalid && !sendForm.amount.$pristine">valid!</small>
|
||||
<small class="has-error" ng-show="sendForm.amount.$invalid && !sendForm.amount.$pristine">
|
||||
not valid.</small>
|
||||
<small ng-show="notEnoughAmount">{{notEnoughAmount}}</small>
|
||||
<small class="has-error" ng-show="sendForm.amount.$invalid && !sendForm.amount.$pristine && !notEnoughAmount">
|
||||
not valid
|
||||
</small>
|
||||
<small ng-show="notEnoughAmount">Insufficient funds!</small>
|
||||
</label>
|
||||
<div class="small-9 columns">
|
||||
<input type="number" id="amount" ng-disabled="loading"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue