mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 05:26:17 +00:00
87 lines
3.2 KiB
Twig
87 lines
3.2 KiB
Twig
{% extends "./layout/default" %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, importJob) }}
|
|
{% 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('import.job_config_map_title') }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<p>
|
|
{{ trans('import.job_config_map_text') }}
|
|
</p>
|
|
{% if data|length == 0 %}
|
|
<p class="text-danger">
|
|
{{ trans('import.job_config_map_nothing') }}
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<form action="{{ route('import.job.configuration.post', importJob.key) }}" method="post">
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
|
|
|
|
|
{% for index, field in data %}
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ trans('import.column_'~field.name) }}</h3>
|
|
</div>
|
|
<div class="box-body no-padding">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:50%;">{{ trans('import.job_config_field_value') }}</th>
|
|
<th>{{ trans('import.job_config_field_mapped') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for option in field.values %}
|
|
<tr>
|
|
<td>
|
|
<code>{{ option }}</code>
|
|
</td>
|
|
<td>
|
|
{{ Form.select('mapping['~index~']['~option~']',
|
|
field.options,
|
|
importJob.configuration['column-mapping-config'][index][option], {class: 'form-control'}) }}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
|
|
<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('import.job_config_map_submit') }} <i class="fa fa-arrow-right"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
{% endblock %}
|