Start updating view.

This commit is contained in:
James Cole 2017-12-30 12:54:19 +01:00
parent 08f28d48af
commit 717e101b80
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 42 additions and 4 deletions

View File

@ -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',

View File

@ -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 %}