mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
73 lines
3.2 KiB
Twig
73 lines
3.2 KiB
Twig
{% extends "./layout/default" %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">
|
|
List of all attachments
|
|
</h3>
|
|
</div>
|
|
<div class="box-body no-padding">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">File name</th>
|
|
<th>Size of file</th>
|
|
<th>Type of file</th>
|
|
<th>Attached to</th>
|
|
<th>Exists?</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for att in set %}
|
|
<tr>
|
|
<td>
|
|
<div class="btn-group btn-group-xs">
|
|
<a href="{{ route('attachments.edit', att.id) }}" class="btn btn-default"><i class="fa fa-pencil"></i></a>
|
|
<a href="{{ route('attachments.delete', att.id) }}" class="btn btn-danger"><i class="fa fa-trash"></i></a>
|
|
<a href="{{ route('attachments.download', att.id) }}" class="btn btn-default"><i class="fa fa-download"></i></a>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<a href="{{ route('attachments.view', att.id) }}" title="{{ att.filename }}">
|
|
{{ att.filename }}
|
|
</a>
|
|
</td>
|
|
<td>{{ att.size|filesize }}</td>
|
|
<td>{{ att.mime }}</td>
|
|
<td>
|
|
{% if att.attachable_type == 'FireflyIII\\Models\\TransactionJournal' %}
|
|
<a href="{{ route('transactions.show', [att.attachable_id]) }}">
|
|
{{ att.attachable.description }}
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if att.file_exists %}
|
|
<i class="fa fa-check text-success"></i>
|
|
{% else %}
|
|
<i class="fa fa-warning text-danger"></i>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block styles %}
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{% endblock %}
|