2017-06-10 18:04:46 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!-- vim: set tw=80 ts=2 sw=2 sts=2: -->
|
2016-04-12 10:55:08 +02: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.
|
|
|
|
|
|
|
|
Accountant 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/>.
|
|
|
|
-->
|
|
|
|
<div class="row">
|
|
|
|
<table class="table table-striped table-condensed table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Nom du compte</th>
|
|
|
|
<th class="col-md-1">Solde courant</th>
|
|
|
|
<th class="col-md-1">Solde pointé</th>
|
|
|
|
<th class="col-md-1">Découvert autorisé</th>
|
|
|
|
<th class="col-md-1">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td colspan="5">
|
2017-06-16 23:22:07 +02:00
|
|
|
<button class="btn btn-success" ng-click="accountsCtrl.add()">
|
2016-07-15 16:40:39 +02:00
|
|
|
Ajouter
|
|
|
|
</button>
|
2016-04-12 10:55:08 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr id="{{ account.id }}"
|
|
|
|
class="form-inline" ng-class="rowClass(account)"
|
2017-06-16 23:28:34 +02:00
|
|
|
ng-repeat="account in accountsCtrl.accounts | orderBy:'name'"
|
|
|
|
ng-init="account.getBalances()">
|
2016-04-12 10:55:08 +02:00
|
|
|
<td>
|
2017-06-10 18:08:31 +02:00
|
|
|
<a href="#!/account/{{ account.id }}/operations">{{ account.name }}</a>
|
2016-04-12 10:55:08 +02:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2017-06-16 23:28:34 +02:00
|
|
|
<span ng-class="accountsCtrl.valueClass(account, account.balances.current)">
|
|
|
|
{{ account.balances.current | currency : "€" }}
|
2016-04-12 10:55:08 +02:00
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2017-06-16 23:28:34 +02:00
|
|
|
<span ng-class="accountsCtrl.valueClass(account, account.balancess.pointed)">
|
|
|
|
{{ account.balances.pointed | currency : "€" }}
|
2016-04-12 10:55:08 +02:00
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2016-05-22 21:47:33 +02:00
|
|
|
{{ account.authorized_overdraft | currency : "€" }}
|
2016-04-12 10:55:08 +02:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2016-05-22 21:47:33 +02:00
|
|
|
<div class="btn-group btn-group-xs">
|
|
|
|
<!-- Edit account. -->
|
|
|
|
<button type="button" class="btn btn-success"
|
2017-06-16 23:22:07 +02:00
|
|
|
ng-model="accountsCtrl.account"
|
|
|
|
ng-click="accountsCtrl.modify(account)">
|
2016-05-22 21:47:33 +02:00
|
|
|
<span class="fa fa-pencil-square-o"></span>
|
|
|
|
</button>
|
2016-04-12 10:55:08 +02:00
|
|
|
|
2016-05-22 21:47:33 +02:00
|
|
|
<!-- Delete account, with confirm. -->
|
|
|
|
<button type="button" class="btn btn-default"
|
2017-06-16 23:22:07 +02:00
|
|
|
ng-click="accountsCtrl.delete(account)">
|
2016-05-22 21:47:33 +02:00
|
|
|
<span class="fa fa-trash-o"></span>
|
|
|
|
</button>
|
2016-04-12 10:55:08 +02:00
|
|
|
|
2016-05-22 21:47:33 +02:00
|
|
|
<!-- Open account scheduler. -->
|
|
|
|
<a class="btn btn-default"
|
|
|
|
ng-if="account.id"
|
2017-06-10 18:08:31 +02:00
|
|
|
href="#!/account/{{ account.id }}/scheduler">
|
2016-05-22 21:47:33 +02:00
|
|
|
<span class="fa fa-clock-o"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2016-04-12 10:55:08 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|