Skip to content

Firefly III: a personal finances manager

Start updating view.

James Cole717e101b80e4
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index 782201f1bf..9f09d2d2b8 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -728,6 +728,9 @@ return [
'reconcile_selected' => 'Reconcile',
'mass_delete_journals' => 'Delete a number of transactions',
'mass_edit_journals' => 'Edit a number of transactions',
+ 'mass_bulk_journals' => 'Bulk edit a number of transactions',
+ 'mass_bulk_journals_explain' => 'If you do not want to change your transactions one-by-one using the mass-edit function, you can update them in one go. Simply select the preferred category, tag(s) or budget in the fields below, and all the transactions in the table will be updated.',
+ 'bulk_set_new_values' => 'Use the inputs below to set new values. If you leave them empty, they will be made empty for all. Also, note that only withdrawals will be given a budget.',
'bulk_edit' => 'Bulk edit',
'cannot_edit_other_fields' => 'You cannot mass-edit other fields than the ones here, because there is no room to show them. Please follow the link and edit them by one-by-one, if you need to edit these fields.',
'no_budget' => 'none',
diff --git a/resources/views/transactions/bulk/edit.twig b/resources/views/transactions/bulk/edit.twig
index 71a94c5567..8f4c48b2ce 100644
--- a/resources/views/transactions/bulk/edit.twig
+++ b/resources/views/transactions/bulk/edit.twig
@@ -56,14 +56,48 @@
<a href="{{ route('budgets.show', [bud.id]) }}">{{ bud.name }}</a>
{% endif %}
</td>
- <td></td>
- <td></td>
+ <td>
+ {% for tag in journal.tags %}
+ <a class="label label-success" href="{{ route('tags.show', [tag.id]) }}">
+ <i class="fa fa-fw fa-tag"></i> {{ tag.tag }}</a>
+ {% endfor %}
+ </td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
+ <p>
+ {{ 'bulk_set_new_values'|_ }}
+ </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">
+ <tr>
+ <th style="width:25%;">{{ trans('list.category') }}</th>
+ <td>
+ <input class="form-control" placeholder="" name="category" type="text" value="">
+ </td>
+ </tr>
+ <tr>
+ <th>{{ trans('list.budget') }}</th>
+ <td>
+ <select class="form-control" name="budget_id">
+ <option value="0">(none)</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <th>{{ trans('list.tags') }}</th>
+ <td>
+ <input class="form-control" placeholder="" name="tags" type="text" value="">
+ </td>
+ </tr>
+ </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>
@@ -72,14 +106,15 @@
<tr>
{# category #}
<td>
- <input class="form-control input-sm" placeholder="" name="category" type="text" value="">
+
</td>
{# tags #}
<td>
- <input class="form-control input-sm" placeholder="" name="tags" type="text" value="">
+
</td>
</tr>
</table>
+ -->
</div>
<div class="box-footer">
{% if journals.count > 0 %}