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