mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Works up until actual import.
This commit is contained in:
@@ -24,6 +24,44 @@
|
||||
</div>
|
||||
<form action="{{ route('import.postSettings', job.key) }}" method="post">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
||||
<input type="hidden" name="settings" value="map"/>
|
||||
|
||||
{% for field in data %}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ field.name }}</h3>
|
||||
</div>
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:50%;">{{ trans('csv.field_value') }}</th>
|
||||
<th>{{ trans('csv.field_mapped_to') }}</th>
|
||||
</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 %}
|
||||
|
||||
|
||||
{#
|
||||
|
||||
|
@@ -54,10 +54,16 @@
|
||||
{% endif %}
|
||||
|
||||
<td>
|
||||
{{ Form.select(('role['~loop.index0~']'), data.available_roles,data.set_roles[index],{class: 'form-control'}) }}
|
||||
{{ 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,map[index]) }}
|
||||
{{ Form.checkbox(('map['~loop.index0~']'),1,
|
||||
job.configuration['column-do-mapping'][loop.index0]
|
||||
|
||||
) }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user