mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
81 lines
2.9 KiB
Twig
81 lines
2.9 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_process'|_ }}</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_process_text'|_ }}</p>
|
|
<h4>{{ 'csv_more_information' }}</h4>
|
|
<p>{{ 'csv_more_information_text'|_ }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'csv_process_form'|_ }}</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">
|
|
<form action="{{ route('csv.initial_parse') }}" method="post">
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
|
<table class="table">
|
|
<thead>
|
|
<th>{{ 'cvs_column_name'|_ }}</th>
|
|
<th>{{ 'cvs_column_example'|_ }}</th>
|
|
<th>{{ 'cvs_column_role'|_ }}</th>
|
|
<th>{{ 'do_map_value'|_ }}</th>
|
|
</thead>
|
|
{% for index,header in headers %}
|
|
<tr>
|
|
<td>{{ header }}</td>
|
|
<td>{{ example[index] }}</td>
|
|
<td>
|
|
{{ Form.select(('role['~index~']'), availableRoles,roles[index]) }}
|
|
</td>
|
|
<td>
|
|
{{ Form.checkbox(('map['~index~']'),1,map[index]) }}
|
|
</td>
|
|
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<p>
|
|
<a href="{{ route('csv.index') }}" class="btn btn-danger pull-right">{{ 'go_back'|_ }}</a>
|
|
<button type="submit" class="btn btn-success">
|
|
{{ 'process_csv_file'|_ }}
|
|
</button>
|
|
</p>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|