2013-02-08 13:07:27 +01:00
|
|
|
<!--
|
|
|
|
This file is part of Accountant.
|
|
|
|
|
|
|
|
Accountant is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Foobar is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
2013-02-07 15:00:31 +01:00
|
|
|
<!-- Dialog header with title -->
|
|
|
|
<div class="modal-header">
|
2013-07-29 14:36:27 +02:00
|
|
|
<h3>Éditer le compte [[account.name]]</h3>
|
2013-02-07 15:00:31 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Dialog body -->
|
|
|
|
<div class="modal-body">
|
2013-12-06 20:36:26 +01:00
|
|
|
<form class="form-horizontal" role="form">
|
|
|
|
<div class="form-group">
|
2013-02-07 15:00:31 +01:00
|
|
|
<!-- Account name field -->
|
|
|
|
<label class="control-label" for="inputName">Nom du compte</label>
|
2013-12-06 20:36:26 +01:00
|
|
|
<input type="text" class="form-control" id="inputName" ng-model="account.name"/>
|
|
|
|
|
|
|
|
<div class="errors" ng-show="form.inputName.$dirty && form.inputName.$invalid">
|
|
|
|
<span ng-show="form.inputName.$error.server">{{ errors.name }}</span>
|
2013-02-07 15:00:31 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Authorized overdraft field -->
|
|
|
|
<label class="control-label" for="inputAuthorizedOverdraft">Découvert authorisé</label>
|
2013-12-06 20:36:26 +01:00
|
|
|
<input type="text" class="form-control" id="inputAuthorizedOverdraft" ng-model="account.authorized_overdraft"/>
|
|
|
|
|
|
|
|
<div class="errors" ng-show="form.inputAuthorizedOverdraft.$dirty && form.inputAuthorizedOverdraft.$invalid">
|
|
|
|
<span ng-show="form.inputAuthorizedOverdraft.$error.server">{{ errors.authorized_overdraft }}</span>
|
2013-02-07 15:00:31 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Dialog footer with buttons -->
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a href="#" class="btn btn-primary" ng-click="saveAccount(account, this)">OK</a>
|
|
|
|
<a href="#" class="btn" ng-click="cancelEditAccount(account, this)">Annuler</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|