2017-08-23 21:21:42 +02:00
|
|
|
{% extends "./layout/default" %}
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-12-23 20:46:52 +01:00
|
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, linkType) }}
|
2017-08-23 21:21:42 +02:00
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ trans('firefly.overview_for_link', {name: linkType.name}) }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body no-padding">
|
|
|
|
<table class="table table-hover sortable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th> </th>
|
2017-10-06 23:39:15 +02:00
|
|
|
<th>{{ trans('firefly.source_transaction') }}</th>
|
2017-08-23 21:21:42 +02:00
|
|
|
<th> </th>
|
2017-10-06 23:39:15 +02:00
|
|
|
<th>{{ trans('firefly.link_description') }}</th>
|
|
|
|
<th>{{ trans('firefly.destination_transaction') }}</th>
|
2017-08-23 21:21:42 +02:00
|
|
|
<th> </th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for link in links %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="btn-group btn-group-xs">
|
|
|
|
<a href="{{ route('transactions.link.delete', [link.id]) }}" class="btn btn-danger"><i class="fa fa-trash"></i></a>
|
|
|
|
<a href="{{ route('transactions.link.switch', [link.id]) }}" class="btn btn-default"><i class="fa fa-fw fa-arrows-h"></i></a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td data-value="{{ link.source.description }}">
|
|
|
|
<a href="{{ route('transactions.show', [link.source_id]) }}">{{ link.source.description }}</a>
|
|
|
|
</td>
|
2017-11-04 07:10:21 +01:00
|
|
|
<td>{{ link.source|journalTotalAmount }}</td>
|
2017-08-23 21:21:42 +02:00
|
|
|
<td>{{ linkType.outward }}</td>
|
|
|
|
<td data-value="{{ link.destination.description }}">
|
|
|
|
<a href="{{ route('transactions.show', [link.destination_id]) }}">{{ link.destination.description }}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
2017-11-04 07:10:21 +01:00
|
|
|
{{ link.destination|journalTotalAmount }}
|
|
|
|
|
2017-08-23 21:21:42 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
2017-09-12 19:59:07 +02:00
|
|
|
<script type="text/javascript" src="js/lib/bootstrap-sortable.js?v={{ FF_VERSION }}"></script>
|
2017-08-23 21:21:42 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block styles %}
|
2017-09-27 08:49:59 +02:00
|
|
|
<link rel="stylesheet" href="css/bootstrap-sortable.css?v={{ FF_VERSION }}" type="text/css" media="all"/>
|
2017-08-31 06:47:18 +02:00
|
|
|
{% endblock %}
|