1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-15 00:24:09 +01:00
fab-manager/app/frontend/templates/wallet/transactions.html

35 lines
1.5 KiB
HTML
Raw Normal View History

2016-07-05 13:20:25 +02:00
<div>
<table class="table" ng-if="transactions.length > 0">
<thead>
<tr>
2019-12-16 16:54:40 +01:00
<th style="width:25%" translate>{{ 'app.shared.wallet.date' }}</th>
<th style="width:25%" translate>{{ 'app.shared.wallet.operation' }}</th>
<th style="width:25%" translate>{{ 'app.shared.wallet.operator' }}</th>
<th style="width:25%" translate>{{ 'app.shared.wallet.amount' }}</th>
2016-07-05 13:20:25 +02:00
</tr>
</thead>
<tbody>
<tr ng-repeat="t in transactions">
<td>{{ ::t.created_at | amDateFormat:'L' }}</td>
2016-07-05 13:20:25 +02:00
<td>
2019-12-16 16:54:40 +01:00
<span ng-if="t.transaction_type == 'credit'" translate>{{ 'app.shared.wallet.credit' }}</span>
<span ng-if="t.transaction_type == 'debit'" translate>{{ 'app.shared.wallet.debit' }}</span>
<a ng-href="api/invoices/{{t.invoice.id}}/download" target="_blank" ng-if="t.invoice.id">
{{::t.invoice.reference}}
</a>
<a ng-href="api/payment_schedules/{{t.payment_schedule.id}}/download" target="_blank" ng-if="t.payment_schedule.id">
{{::t.payment_schedule.reference}}
</a>
2016-07-05 13:20:25 +02:00
</td>
<td>{{ ::t.user.full_name }}</td>
2016-07-05 13:20:25 +02:00
<td ng-class="{'green':t.transaction_type == 'credit', 'red':t.transaction_type == 'debit'}">
<span ng-if="t.transaction_type == 'credit'">+</span>
<span ng-if="t.transaction_type == 'debit'">-</span>
<strong>{{ ::t.amount | currency }}</strong>
2016-07-05 13:20:25 +02:00
</td>
</tr>
</tbody>
</table>
2019-12-16 16:54:40 +01:00
<p ng-if="transactions.length == 0" translate>{{ 'app.shared.wallet.no_transactions_for_now' }}</p>
2016-07-05 13:20:25 +02:00
</div>