mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-10 23:45:48 -06:00
98 lines
3.7 KiB
Twig
98 lines
3.7 KiB
Twig
{% extends "./layout/default" %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ trans('csv.column_roles_title') }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<p>
|
|
{{ 'see_help_top_right'|_ }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<form action="{{ route('import.post-settings', job.key) }}" method="post">
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
|
<input type="hidden" name="settings" value="roles"/>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ trans('csv.column_roles_table') }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:20%;">{{ trans('csv.column_name') }}</th>
|
|
<th style="width:40%;">{{ trans('csv.column_example') }}</th>
|
|
<th style="width:30%;">{{ trans('csv.column_role') }}</th>
|
|
<th style="width:10%;">{{ trans('csv.do_map_value') }}</th>
|
|
</tr>
|
|
</thead>
|
|
{% for i in 0..(data.columnCount-1) %}
|
|
|
|
<tr>
|
|
<td>{{ trans('csv.column') }} #{{ loop.index }}</td>
|
|
<td>
|
|
{% if data.columns[i]|length == 0 %}
|
|
<em>{{ trans('csv.no_example_data') }}</em>
|
|
{% else %}
|
|
{% for example in data.columns[i] %}
|
|
<code>{{ example }}</code><br/>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
<td>
|
|
{{ Form.select(('role['~loop.index0~']'),
|
|
data.available_roles,
|
|
job.configuration['column-roles'][loop.index0],
|
|
{class: 'form-control'}) }}
|
|
</td>
|
|
<td>
|
|
{{ Form.checkbox(('map['~loop.index0~']'),1,
|
|
job.configuration['column-do-mapping'][loop.index0]
|
|
|
|
) }}
|
|
</td>
|
|
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="box">
|
|
<div class="box-body">
|
|
<button type="submit" class="btn btn-success pull-right">
|
|
{{ trans('csv.store_column_roles') }} <i class="fa fa-arrow-right"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
{% endblock %}
|