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"> </th>
|
2015-05-02 05:51:02 -05:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Matches on</th>
|
|
|
|
<th colspan="2">Matching amount</th>
|
|
|
|
<th>Last seen match</th>
|
|
|
|
<th>Next expected match</th>
|
|
|
|
<th>Is active</th>
|
|
|
|
<th>Will be automatched</th>
|
|
|
|
<th>Repeats every</th>
|
2015-05-08 10:00:39 -05:00
|
|
|
<th data-defaultsort="disabled"> </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-02 05:51:02 -05:00
|
|
|
{{entry.lastFoundMatch.format('j F Y')}}
|
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-02 05:51:02 -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-02 05:51:02 -05:00
|
|
|
{{entry.nextExpectedMatch.format('j F Y')}}
|
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-02 05:51:02 -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-02 05:51:02 -05:00
|
|
|
{{ entry.repeat_freq }}
|
|
|
|
{% if entry.skip > 0 %}
|
|
|
|
skips over {{entry.skip}}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if entry.active %}
|
|
|
|
<a href="{{route('bills.add',entry.id)}}" class="btn btn-success btn-xs"><i class="fa fa-fw fa-plus-circle"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{% endfor %}
|
2015-05-08 10:04:24 -05:00
|
|
|
</tbody>
|
2015-05-02 05:51:02 -05:00
|
|
|
</table>
|