From 717e101b80e45771470c98a58a2074c685cd5a3e Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 30 Dec 2017 12:54:19 +0100 Subject: [PATCH] Start updating view. --- resources/lang/en_US/firefly.php | 3 ++ resources/views/transactions/bulk/edit.twig | 43 +++++++++++++++++++-- 2 files changed, 42 insertions(+), 4 deletions(-) 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 @@ {{ bud.name }} {% endif %} - - + + {% for tag in journal.tags %} + + {{ tag.tag }} + {% endfor %} + {% endfor %} +

+ {{ 'bulk_set_new_values'|_ }} +

+
+
+ + + + + + + + + + + + + +
{{ trans('list.category') }} + +
{{ trans('list.budget') }} + +
{{ trans('list.tags') }} + +
+
+
+