This commit is contained in:
James Cole 2017-12-30 12:43:13 +01:00
parent 5da9f0cfb6
commit 3cc1bf52cb
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -1,7 +1,7 @@
{% extends "./layout/default" %}
{% block breadcrumbs %}
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, journals) }}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, journals) }}
{% endblock %}
{% block content %}
@ -17,12 +17,53 @@
<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">{{ 'mass_edit_bulk_journals'|_ }}</h3>
<h3 class="box-title">{{ 'mass_bulk_journals'|_ }}</h3>
</div>
<div class="box-body">
<p>
{{ 'cannot_edit_other_fields'|_ }}
{{ 'mass_bulk_journals_explain'|_ }}
</p>
<div class="row">
<div class="col-lg-8 col-md-12 col-sm-12 col-xs-12">
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>{{ trans('list.description') }}</th>
<th>{{ trans('list.amount') }}</th>
<th>{{ trans('list.date') }}</th>
<th>{{ trans('list.category') }}</th>
<th>{{ trans('list.budget') }}</th>
<th>{{ trans('list.tags') }}</th>
</tr>
</thead>
<tbody>
{% for journal in journals %}
<tr>
<td>
<a href="{{ route('transactions.show', [journal.id]) }}">
{{ journal.description }}</a></td>
<td>{{ journal|journalTotalAmount }}</td>
<td>{{ journal.date.formatLocalized(monthAndDayFormat) }}</td>
<td>
{% set cat = journal.categories.first %}
{% if cat %}
<a href="{{ route('categories.show', [cat.id]) }}">{{ cat.name }}</a>
{% endif %}
</td>
<td>
{% set bud = journal.budgets.first %}
{% if bud %}
<a href="{{ route('budgets.show', [bud.id]) }}">{{ bud.name }}</a>
{% endif %}
</td>
<td></td>
<td></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<table class="table table-striped table-condensed">
<tr>
<th class="col-lg-2 col-md-2 col-sm-2">{{ trans('list.category') }}</th>