Fixes validation of input form. Improved error message

This commit is contained in:
Gustavo Cortez 2014-06-12 11:09:18 -03:00
commit a76de35bb0
2 changed files with 10 additions and 7 deletions

View file

@ -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"