2017-12-30 02:21:28 -06:00
|
|
|
{% extends "./layout/default" %}
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-12-30 05:43:13 -06:00
|
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, journals) }}
|
2017-12-30 02:21:28 -06:00
|
|
|
{% 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">
|
2017-12-30 02:21:28 -06:00
|
|
|
<input name="_token" type="hidden" value="{{ csrf_token() }}">
|
|
|
|
<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>
|
2017-12-30 02:21:28 -06:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<p>
|
2017-12-30 05:43:13 -06:00
|
|
|
{{ 'mass_bulk_journals_explain'|_ }}
|
2017-12-30 02:21:28 -06:00
|
|
|
</p>
|
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>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for journal in journals %}
|
2017-12-30 07:25:11 -06:00
|
|
|
{% if journal.transaction_count == 2 %}
|
|
|
|
<input type="hidden" name="journals[]" value="{{ journal.id }}"/>
|
2017-12-30 05:43:13 -06:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('transactions.show', [journal.id]) }}">
|
|
|
|
{{ journal.description }}</a></td>
|
|
|
|
<td>{{ journal|journalTotalAmount }}</td>
|
|
|
|
<td>{{ journal.date.formatLocalized(monthAndDayFormat) }}</td>
|
2018-06-29 22:54:23 -05:00
|
|
|
<td>{{ journalCategories(journal)|raw }}</td>
|
|
|
|
<td>{{ journalBudgets(journal)|raw }}</td>
|
2017-12-30 05:54:19 -06:00
|
|
|
<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>
|
2017-12-30 05:43:13 -06:00
|
|
|
</tr>
|
2017-12-30 07:25:11 -06:00
|
|
|
{% endif %}
|
2017-12-30 05:43:13 -06:00
|
|
|
{% 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>
|
2017-12-30 06:05:19 -06:00
|
|
|
|
2017-12-30 05:54:19 -06:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-30 02:21:28 -06:00
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
{% if journals.count > 0 %}
|
|
|
|
<input type="submit" name="submit" value="{{ trans('form.update_all_journals') }}" class="btn btn-success pull-right"/>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ route('index') }}" class="btn-default btn">{{ trans('form.cancel') }}</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
var what = "";
|
|
|
|
</script>
|
2018-11-02 13:59:29 -05:00
|
|
|
<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>
|
2017-12-30 02:21:28 -06:00
|
|
|
{% endblock %}
|
|
|
|
{% block styles %}
|
2018-11-02 13:59:29 -05:00
|
|
|
<link href="v1/css/bootstrap-tagsinput.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
|
2017-12-30 02:21:28 -06:00
|
|
|
{% endblock %}
|