mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
95 lines
3.3 KiB
Twig
95 lines
3.3 KiB
Twig
{% extends "./layout/default.twig" %}
|
|
|
|
{% 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">{{ 'csv_map_title'|_ }}</h3>
|
|
|
|
<!-- ACTIONS MENU -->
|
|
<div class="box-tools pull-right">
|
|
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="box-body">
|
|
<p>
|
|
{{ 'csv_map_text'|_ }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<form action="{{ route('csv.save_mapping') }}" method="post">
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
|
|
|
{% for index,columnName in map %}
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ Config.get('csv.roles.'~columnName~'.name') }}</h3>
|
|
|
|
<!-- ACTIONS MENU -->
|
|
<div class="box-tools pull-right">
|
|
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="box-body no-padding">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:50%;">{{ 'csv_field_value'|_ }}</th>
|
|
<th>{{ 'csv_field_mapped_to'|_ }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for value in values[index] %}
|
|
<tr>
|
|
<td><code>{{ value }}</code></td>
|
|
<td>
|
|
{{ Form.select('mapping['~index~']['~value~']',options[index], mapped[index][value], {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">
|
|
<a href="{{ route('csv.column-roles') }}" class="btn btn-danger"><i class="fa fa-arrow-left"></i> {{ 'csv_go_back'|_ }}</a>
|
|
<button type="submit" class="btn btn-success pull-right">
|
|
{{ 'csv_continue'|_ }} <i class="fa fa-arrow-right"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
{% endblock %}
|