firefly-iii/resources/views/v1/transactions/bulk/edit.twig

186 lines
11 KiB
Twig
Raw Normal View History

{% extends "./layout/default" %}
{% block breadcrumbs %}
2017-12-30 05:43:13 -06:00
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, journals) }}
{% endblock %}
{% block content %}
2017-12-30 07:25:11 -06:00
<form method="POST" action="{{ route('transactions.bulk.update') }}" accept-charset="UTF-8" class="form-horizontal" id="update">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
2019-07-04 10:31:47 -05:00
<div class="row">
<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">
2017-12-30 05:43:13 -06:00
<h3 class="box-title">{{ 'mass_bulk_journals'|_ }}</h3>
</div>
2019-07-04 10:31:47 -05:00
<div class="box-body">
<p>
2017-12-30 05:43:13 -06:00
{{ 'mass_bulk_journals_explain'|_ }}
</p>
2019-07-04 10:31:47 -05:00
2017-12-30 05:43:13 -06:00
<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>
2019-07-04 10:31:47 -05:00
<th>&nbsp;</th>
2017-12-30 05:43:13 -06:00
</tr>
</thead>
<tbody>
{% for journal in journals %}
2019-07-04 10:31:47 -05:00
<input type="hidden" name="journals[]" value="{{ journal.transaction_journal_id }}"/>
2017-12-30 05:43:13 -06:00
<tr>
<td>
2019-07-04 10:31:47 -05:00
<a href="{{ route('transactions.show', [journal.transaction_group_id]) }}">
2017-12-30 05:43:13 -06:00
{{ journal.description }}</a></td>
2019-07-04 10:31:47 -05:00
<td>
{% if journal.transaction_type_type == 'Deposit' %}
2019-08-15 23:21:10 -05:00
{{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
2019-07-04 10:31:47 -05:00
{% if null != journal.foreign_amount %}
2019-08-15 23:21:10 -05:00
({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
2019-07-04 10:31:47 -05:00
{% endif %}
{% elseif journal.transaction_type_type == 'Transfer' %}
<span class="text-info">
2019-08-15 23:21:10 -05:00
{{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
2019-07-04 10:31:47 -05:00
{% if null != journal.foreign_amount %}
2019-08-15 23:21:10 -05:00
({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
2019-07-04 10:31:47 -05:00
{% endif %}
</span>
{% else %}
2019-08-15 23:21:10 -05:00
{{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
2019-07-04 10:31:47 -05:00
{% if null != journal.foreign_amount %}
2019-08-15 23:21:10 -05:00
({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
2019-07-04 10:31:47 -05:00
{% endif %}
{% endif %}
</td>
2017-12-30 05:43:13 -06:00
<td>{{ journal.date.formatLocalized(monthAndDayFormat) }}</td>
2019-07-04 10:31:47 -05:00
<td>
{% if journal.category_id != null %}
<a href="{{ route('categories.show', [journal.category_id]) }}" title="{{ journal.category_name }}">{{ journal.category_name }}</a>
{% endif %}
</td>
<td>
{% if journal.budget_id != null %}
<a href="{{ route('budgets.show', [journal.budget_id]) }}" title="{{ journal.budget_name }}">{{ journal.budget_name }}</a>
{% endif %}
</td>
2017-12-30 05:54:19 -06:00
<td>
{% for tag in journal.tags %}
2019-07-04 10:31:47 -05:00
<span style="display: inline;"><a class="label label-success" href="{{ route('tags.show', [tag.name]) }}">
<i class="fa fa-fw fa-tag"></i>
{{ tag.name }}</a>
</span>
2017-12-30 05:54:19 -06:00
{% endfor %}
</td>
2019-07-04 10:31:47 -05:00
<td>
{% if journal.journals_in_group > 1 %}
<i title="{{ 'part_of_split'|_ }}" class="text-danger fa fa-fw fa-exclamation-triangle"></i>
{% endif %}
</td>
2017-12-30 05:43:13 -06:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
2017-12-30 05:54:19 -06:00
<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>
2018-01-22 11:16:50 -06:00
<input class="form-control" placeholder="" name="category" autocomplete="off" type="text" value="">
2017-12-30 05:54:19 -06:00
</td>
2017-12-30 06:05:19 -06:00
<td>
<div class="checkbox">
<label>
2017-12-31 03:40:27 -06:00
<input name="ignore_category" type="checkbox" value="1" checked>
2017-12-30 06:05:19 -06:00
{{ 'no_bulk_category'|_ }}
</label>
</div>
</td>
2017-12-30 05:54:19 -06:00
</tr>
<tr>
<th>{{ trans('list.budget') }}</th>
<td>
<select class="form-control" name="budget_id">
2017-12-30 06:05:19 -06:00
{% for id, budget in budgetList %}
<option value="{{ id }}" label="{{ budget }}">{{ budget }}</option>
{% endfor %}
2017-12-30 05:54:19 -06:00
</select>
</td>
2017-12-30 06:05:19 -06:00
<td>
<div class="checkbox">
<label>
2017-12-31 03:40:27 -06:00
<input name="ignore_budget" type="checkbox" value="1" checked>
2017-12-30 06:05:19 -06:00
{{ 'no_bulk_budget'|_ }}
</label>
</div>
</td>
2017-12-30 05:54:19 -06:00
</tr>
<tr>
<th>{{ trans('list.tags') }}</th>
<td>
2018-01-22 11:16:50 -06:00
<input class="form-control" placeholder="" name="tags" autocomplete="off" type="text" value="">
2017-12-30 05:54:19 -06:00
</td>
2017-12-30 06:05:19 -06:00
<td>
<div class="checkbox">
<label>
2017-12-31 03:40:27 -06:00
<input name="ignore_tags" type="checkbox" value="1" checked>
2017-12-30 06:05:19 -06:00
{{ 'no_bulk_tags'|_ }}
</label>
</div>
</td>
2017-12-30 05:54:19 -06:00
</tr>
</table>
2019-07-04 10:31:47 -05:00
2017-12-30 05:54:19 -06:00
</div>
</div>
2019-07-04 10:31:47 -05:00
</div>
2019-07-04 10:31:47 -05:00
<div class="box-footer">
2019-07-04 10:31:47 -05:00
<div class="row">
<div class="col-lg-8">
<input type="submit" name="submit" value="{{ trans('form.update_all_journals') }}" class="btn btn-success pull-right"/>
<a href="{{ route('index') }}" class="btn-default btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
2019-07-04 10:31:47 -05:00
</div>
2019-07-04 10:31:47 -05:00
</div>
2019-07-04 10:31:47 -05:00
</div>
2019-07-04 10:31:47 -05:00
</form>
{% endblock %}
{% block scripts %}
<script type="text/javascript">
var what = "";
</script>
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ FF_VERSION }}"></script>
<script type="text/javascript" src="v1/js/ff/common/autocomplete.js?v={{ FF_VERSION }}"></script>
<script type="text/javascript" src="v1/js/lib/bootstrap-tagsinput.min.js?v={{ FF_VERSION }}"></script>
<script type="text/javascript" src="v1/js/ff/transactions/mass/edit-bulk.js?v={{ FF_VERSION }}"></script>
{% endblock %}
{% block styles %}
<link href="v1/css/bootstrap-tagsinput.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
{% endblock %}