This commit is contained in:
Alexis Lahouze 2017-07-04 21:54:31 +02:00
parent 0fa2f06a0e
commit c06dea22f6

View File

@ -25,9 +25,10 @@
<label class="col-sm-4 control-label" for="name">Account name</label>
<div class="col-sm-8">
<input class="form-control" id="name" name="name"
ng-model="$ctrl.account.name"
type="text" placeholder="Account name"
required />
ng-model="$ctrl.account.name"
type="text" placeholder="Account name"
required />
<div class="help-block" ng-messages="form.name.$error" ng-if="form.name.$invalid">
<p ng-message="required">The account name is required.</p>
</div>
@ -40,13 +41,14 @@
<div class="input-group">
<div class="input-group-addon">-</div>
<input class="form-control" id="authorized-overdraft"
name="authorized_overdraft"
ng-model="$ctrl.authorized_overdraft"
ng-change="$ctrl.authorizedOverdraftChange()"
type="number" placeholder="Authorized overdraft"
required min="0"/>
name="authorized_overdraft"
ng-model="$ctrl.authorized_overdraft"
ng-change="$ctrl.authorizedOverdraftChange()"
type="number" placeholder="Authorized overdraft"
required min="0"/>
<div class="input-group-addon">.00€</div>
</div>
<div class="help-block" ng-messages="form.authorized_overdraft.$error" ng-if="form.authorized_overdraft.$invalid">
<p ng-message="required">The authorized overdraft is required.</p>
<p ng-message="min">The authorized overdraft must be equal or greater than 0.</p>