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

83 lines
3.5 KiB
Twig
Raw Normal View History

2015-06-21 04:59:35 -05:00
<table class="table table-hover 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>
2015-06-25 10:06:20 -05:00
<th class="hidden-sm hidden-xs">{{ trans('list.matchesOn') }}</th>
2015-05-14 06:00:43 -05:00
<th colspan="2">{{ trans('list.matchingAmount') }}</th>
2015-06-25 10:06:20 -05:00
<th class="hidden-sm hidden-xs">{{ trans('list.lastMatch') }}</th>
<th class="hidden-sm hidden-xs">{{ trans('list.expectedMatch') }}</th>
<th class="hidden-sm hidden-xs">{{ trans('list.active') }}</th>
<th class="hidden-sm hidden-xs">{{ trans('list.automatch') }}</th>
<th class="hidden-sm hidden-xs">{{ trans('list.repeat_freq') }}</th>
2015-06-27 01:06:24 -05:00
</tr>
</thead>
2015-05-08 10:04:24 -05:00
<tbody>
2015-05-02 05:51:02 -05:00
{% for entry in bills %}
2015-06-27 01:06:24 -05:00
<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>
2015-05-08 10:00:39 -05:00
</td>
2015-06-27 01:06:24 -05:00
<td>
<a href="{{ route('bills.show',entry.id) }}" title="{{ entry.name }}">{{ entry.name }}</a>
2015-05-08 10:00:39 -05:00
</td>
2015-06-27 01:06:24 -05:00
<td class="hidden-sm hidden-xs" data-value="{{ entry.match }}">
{% for match in entry.match|split(',') %}
<span class="label label-info">{{ match }}</span>
{% endfor %}
2015-05-08 10:00:39 -05:00
</td>
2015-06-27 01:06:24 -05:00
<td data-value="{{ entry.amount_min }}">
{{ entry.amount_min|formatAmount }}
</td>
<td data-value="{{ entry.amount_max }}">
{{ entry.amount_max|formatAmount }}
2015-05-08 10:00:39 -05:00
</td>
2015-06-27 01:06:24 -05:00
{% if entry.lastFoundMatch %}
<td class="hidden-sm hidden-xs" data-value="{{ entry.lastFoundMatch.format('U') }}">
{{ entry.lastFoundMatch.formatLocalized(monthAndDayFormat) }}
</td>
{% else %}
<td class="hidden-sm hidden-xs" data-value="0">
<em>{{ 'unknown'|_ }}</em>
</td>
2015-05-02 05:51:02 -05:00
{% endif %}
2015-05-08 10:00:39 -05:00
2015-06-27 01:06:24 -05:00
{% if entry.nextExpectedMatch %}
<td class="hidden-sm hidden-xs" data-value="{{ entry.nextExpectedMatch.format('U') }}">
{{ entry.nextExpectedMatch.formatLocalized(monthAndDayFormat) }}
</td>
2015-05-02 05:51:02 -05:00
{% else %}
2015-06-27 01:06:24 -05:00
<td class="hidden-sm hidden-xs" data-value="0">
<em>{{ 'unknown'|_ }}</em>
</td>
2015-05-02 05:51:02 -05:00
{% endif %}
2015-06-27 01:06:24 -05:00
<td class="hidden-sm hidden-xs" data-value="{{ entry.active }}">
{% if entry.active %}
<i class="fa fa-fw fa-check"></i>
{% else %}
<i class="fa fa-fw fa-ban"></i>
{% endif %}
</td>
<td class="hidden-sm hidden-xs" data-value="{{ entry.automatch }}">
{% if entry.automatch %}
<i class="fa fa-fw fa-check"></i>
{% else %}
<i class="fa fa-fw fa-ban"></i>
{% endif %}
</td>
<td class="hidden-sm hidden-xs" data-value="{{ entry.repeat_freq }}{{ entry.skip }}">
{{ entry.repeat_freq|_ }}
{% if entry.skip > 0 %}
skips over {{ entry.skip }}
{% endif %}
</td>
</tr>
2015-05-02 05:51:02 -05:00
{% endfor %}
2015-05-08 10:04:24 -05:00
</tbody>
2015-05-02 05:51:02 -05:00
</table>