mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 02:40:43 -06:00
48 lines
2.0 KiB
Twig
48 lines
2.0 KiB
Twig
<div style="padding-left:8px;">
|
|
{{ categories.links('pagination.bootstrap-4')|raw }}
|
|
</div>
|
|
<table class="table table-hover sortable">
|
|
<thead>
|
|
<tr>
|
|
<th data-defaultsort="disabled"> </th>
|
|
<th data-defaultsign="az">{{ trans('list.name') }}</th>
|
|
<th data-defaultsign="month" class="hidden-sm hidden-xs">{{ trans('list.lastActivity') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td> </td>
|
|
<td><a href="{{ route('categories.no-category') }}"><em>{{ 'without_category'|_ }}</em></a></td>
|
|
<td class="hidden-sm hidden-xs"> </td>
|
|
</tr>
|
|
{% for category in categories %}
|
|
<tr>
|
|
<td>
|
|
<div class="btn-group btn-group-xs">
|
|
<a href="{{ route('categories.edit', category.id) }}" class="btn btn-default btn-xs"><span class="fa fa-fw fa-pencil"></span></a>
|
|
<a href="{{ route('categories.delete', category.id) }}" class="btn btn-danger btn-xs"><span class="fa fa-fw fa-trash-o"></span></a>
|
|
</div>
|
|
</td>
|
|
<td data-value="{{ category.name }}">
|
|
<a href="{{ route('categories.show', category.id) }}" title="{{ category.name }}">{{ category.name }}</a>
|
|
{% if category.attachments.count() > 0 %}
|
|
<span class="fa fa-fw fa-paperclip"></span>
|
|
{% endif %}
|
|
</td>
|
|
{% if category.lastActivity %}
|
|
<td class="hidden-sm hidden-xs" data-value="{{ category.lastActivity.format('Y-m-d H-i-s') }}">
|
|
{{ category.lastActivity.isoFormat(monthAndDayFormat) }}
|
|
</td>
|
|
{% else %}
|
|
<td class="hidden-sm hidden-xs" data-value="0000-00-00 00-00-00">
|
|
<em>{{ 'never'|_ }}</em>
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<div style="padding-left:8px;">
|
|
{{ categories.links('pagination.bootstrap-4')|raw }}
|
|
</div>
|