firefly-iii/resources/twig/list/bills.twig

82 lines
2.9 KiB
Twig
Raw Normal View History

2015-05-08 10:00:39 -05:00
<table class="table table-bordered table-striped sortable">
2015-05-08 10:04:24 -05:00
<thead>
2015-05-02 05:51:02 -05:00
<tr>
2015-05-08 10:00:39 -05:00
<th data-defaultsort="disabled">&nbsp;</th>
2015-05-14 06:00:43 -05:00
<th>{{ trans('list.name') }}</th>
<th>{{ trans('list.matchesOn') }}</th>
<th colspan="2">{{ trans('list.matchingAmount') }}</th>
<th>{{ trans('list.lastMatch') }}</th>
<th>{{ trans('list.expectedMatch') }}</th>
<th>{{ trans('list.active') }}</th>
<th>{{ trans('list.automatch') }}</th>
<th>{{ trans('list.repeat_freq') }}</th>
2015-05-08 10:04:24 -05:00
</tr></thead>
<tbody>
2015-05-02 05:51:02 -05:00
{% for entry in bills %}
<tr>
<td>
<div class="btn-group btn-group-xs">
<a href="{{route('bills.edit',entry.id)}}" class="btn btn-default btn-xs"><i class="fa fa-fw fa-pencil"></i></a>
<a href="{{route('bills.delete',entry.id)}}" class="btn btn-danger btn-xs"><i class="fa fa-fw fa-trash-o"></i></a>
</div>
</td>
<td>
<a href="{{route('bills.show',entry.id)}}" title="{{ entry.name }}">{{ entry.name }}</a>
</td>
2015-05-08 10:00:39 -05:00
<td data-value="{{ entry.match }}">
2015-05-02 05:51:02 -05:00
{% for match in entry.match|split(',') %}
<span class="label label-info">{{ match }}</span>
{% endfor %}
</td>
2015-05-08 10:00:39 -05:00
<td data-value="{{ entry.amount_min }}">
2015-05-02 05:51:02 -05:00
{{ entry.amount_min|formatAmount }}
</td>
2015-05-08 10:00:39 -05:00
<td data-value="{{ entry.amount_max }}">
2015-05-02 05:51:02 -05:00
{{ entry.amount_max|formatAmount }}
</td>
{% if entry.lastFoundMatch %}
2015-05-08 10:00:39 -05:00
<td data-value="{{ entry.lastFoundMatch.format('U') }}">
2015-05-14 11:00:56 -05:00
{{entry.lastFoundMatch.formatLocalized(monthAndDayFormat)}}
2015-05-08 10:00:39 -05:00
</td>
2015-05-02 05:51:02 -05:00
{% else %}
2015-05-08 10:00:39 -05:00
<td data-value="0">
2015-05-14 11:00:56 -05:00
<em>{{ 'unknown'|_ }}</em>
2015-05-08 10:00:39 -05:00
</td>
2015-05-02 05:51:02 -05:00
{% endif %}
2015-05-08 10:00:39 -05:00
2015-05-02 05:51:02 -05:00
{% if entry.nextExpectedMatch%}
2015-05-08 10:00:39 -05:00
<td data-value="{{entry.nextExpectedMatch.format('U')}}">
2015-05-14 11:00:56 -05:00
{{entry.nextExpectedMatch.formatLocalized(monthAndDayFormat)}}
2015-05-08 10:00:39 -05:00
</td>
2015-05-02 05:51:02 -05:00
{% else %}
2015-05-08 10:00:39 -05:00
<td data-value="0">
2015-05-14 11:00:56 -05:00
<em>{{ 'unknown'|_ }}</em>
2015-05-08 10:00:39 -05:00
</td>
2015-05-02 05:51:02 -05:00
{% endif %}
2015-05-08 10:00:39 -05:00
<td data-value="{{ entry.active }}">
2015-05-02 05:51:02 -05:00
{% if entry.active %}
<i class="fa fa-fw fa-check"></i>
{% else %}
<i class="fa fa-fw fa-ban"></i>
{% endif %}
</td>
2015-05-08 10:00:39 -05:00
<td data-value="{{ entry.automatch }}">
2015-05-02 05:51:02 -05:00
{% if entry.automatch %}
<i class="fa fa-fw fa-check"></i>
{% else %}
<i class="fa fa-fw fa-ban"></i>
{% endif %}
</td>
2015-05-08 10:00:39 -05:00
<td data-value="{{ entry.repeat_freq }}{{ entry.skip }}">
2015-05-14 11:00:56 -05:00
{{ entry.repeat_freq|_ }}
2015-05-02 05:51:02 -05:00
{% if entry.skip > 0 %}
skips over {{entry.skip}}
{% endif %}
</td>
</tr>
{% endfor %}
2015-05-08 10:04:24 -05:00
</tbody>
2015-05-02 05:51:02 -05:00
</table>