accountant/frontend/static/templates/account_edit.html

52 lines
2.0 KiB
HTML
Raw Normal View History

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/>.
-->
<!-- Dialog header with title -->
<div class="modal-header">
2013-07-29 14:36:27 +02:00
<h3>&Eacute;diter le compte [[account.name]]</h3>
</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">
<!-- 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>
</div>
<!-- Authorized overdraft field -->
<label class="control-label" for="inputAuthorizedOverdraft">D&eacute;couvert authoris&eacute;</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>
</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>