2016-11-06 08:11:43 +01:00
|
|
|
{% extends "./layout/default" %}
|
2016-07-02 20:40:23 +02:00
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-06-10 15:09:41 +02:00
|
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, job) }}
|
2016-07-02 20:40:23 +02:00
|
|
|
{% 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.map_title') }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
<p>
|
|
|
|
|
{{ trans('csv.map_text') }}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-08-04 15:56:14 +02:00
|
|
|
<form action="{{ route('import.file.process-configuration', job.key) }}" method="post">
|
2016-07-02 20:40:23 +02:00
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
2016-07-02 23:08:47 +02:00
|
|
|
|
|
|
|
|
{% for field in data %}
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
2016-07-15 22:26:08 +02:00
|
|
|
<h3 class="box-title">{{ trans('csv.column_'~field.name) }}</h3>
|
2016-07-02 23:08:47 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="box-body no-padding">
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2017-06-24 06:57:24 +02:00
|
|
|
<th style="width:50%;">{{ trans('csv.map_field_value') }}</th>
|
|
|
|
|
<th>{{ trans('csv.map_field_mapped_to') }}</th>
|
2016-07-02 23:08:47 +02:00
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for option in field.values %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<code>{{ option }}</code>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
{{ Form.select('mapping['~field.index~']['~option~']',
|
|
|
|
|
field.options,
|
|
|
|
|
job.configuration['column-mapping-config'][field.index][option], {class: 'form-control'}) }}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
2016-07-02 20:40:23 +02:00
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
<button type="submit" class="btn btn-success pull-right">
|
2017-06-24 06:57:24 +02:00
|
|
|
{{ trans('csv.map_submit') }} <i class="fa fa-arrow-right"></i>
|
2016-07-02 20:40:23 +02:00
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|