Skip to content

Firefly III: a personal finances manager

Move view. #1078

James Cole3cc1bf52cb42
diff --git a/resources/views/transactions/mass/edit-bulk.twig b/resources/views/transactions/bulk/edit.twig
similarity index 50%
rename from resources/views/transactions/mass/edit-bulk.twig
rename to resources/views/transactions/bulk/edit.twig
index fdff24348f..71a94c5567 100644
--- a/resources/views/transactions/mass/edit-bulk.twig
+++ b/resources/views/transactions/bulk/edit.twig
@@ -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>