Transactions links are now translatable on admin views

This commit is contained in:
Luca Vallerini
2018-08-04 13:03:54 +02:00
parent c73b003de4
commit cb9c87102f
13 changed files with 49 additions and 5 deletions

View File

@@ -35,13 +35,13 @@
{% endif %}
</td>
<td>
<strong>{{ linkType.name }}</strong>
<strong>{{ journalLinkTranslation('name', linkType.name) }}</strong>
</td>
<td>
{{ linkType.inward }}
{{ journalLinkTranslation('inward', linkType.inward) }}
</td>
<td>
{{ linkType.outward }}
{{ journalLinkTranslation('outward', linkType.outward) }}
</td>
<td data-value="{{ linkType.journalCount }}">
<a href="{{ route('admin.links.show', [linkType.id]) }}">{{ linkType.journalCount }}</a>

View File

@@ -8,7 +8,7 @@
<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>
<h3 class="box-title">{{ trans('firefly.overview_for_link', {name: journalLinkTranslation('name', linkType.name)}) }}</h3>
</div>
<div class="box-body no-padding">
<table class="table table-hover sortable">
@@ -36,7 +36,7 @@
<a href="{{ route('transactions.show', [link.source_id]) }}">{{ link.source.description }}</a>
</td>
<td>{{ link.source|journalTotalAmount }}</td>
<td>{{ linkType.outward }}</td>
<td>{{ journalLinkTranslation('outward', linkType.outward) }}</td>
<td data-value="{{ link.destination.description }}">
<a href="{{ route('transactions.show', [link.destination_id]) }}">{{ link.destination.description }}</a>
</td>