mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-10 23:45:48 -06:00
99 lines
4.3 KiB
Twig
99 lines
4.3 KiB
Twig
{% extends "./layout/default" %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, job) }}
|
|
{% 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.import_configure_title') }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<p>
|
|
{{ trans('csv.import_configure_intro') }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<form class="form-horizontal" action="{{ route('import.process-configuration', job.key) }}" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ trans('csv.import_configure_form') }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
|
|
{{ ExpandedForm.checkbox('has_headers',1,job.configuration['has-headers'],{helpText: trans('csv.header_help')}) }}
|
|
{{ ExpandedForm.text('date_format',job.configuration['date-format'],{helpText: trans('csv.date_help', {dateExample: phpdate('Ymd')}) }) }}
|
|
{{ ExpandedForm.select('csv_delimiter', data.delimiters, job.configuration['delimiter'], {helpText: trans('csv.delimiter_help') } ) }}
|
|
{{ ExpandedForm.select('csv_import_account', data.accounts, job.configuration['import-account'], {helpText: trans('csv.import_account_help')} ) }}
|
|
|
|
{% for type, specific in data.specifics %}
|
|
<div class="form-group">
|
|
<label for="{{ type }}_label" class="col-sm-4 control-label">
|
|
{{ specific.name }}
|
|
</label>
|
|
|
|
<div class="col-sm-8">
|
|
<div class="radio"><label>
|
|
{{ Form.checkbox('specifics['~type~']', '1',
|
|
job.configuration.specifics[type] == '1', {'id': type ~ '_label'}) }}
|
|
{{ specific.description }}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% if not data.is_upload_possible %}
|
|
<div class="form-group" id="csv_holder">
|
|
<div class="col-sm-4">
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-8">
|
|
<pre>{{ data.upload_path }}</pre>
|
|
<p class="text-danger">
|
|
{{ trans('csv.upload_not_writeable') }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% if data.is_upload_possible %}
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="box">
|
|
<div class="box-body">
|
|
<button type="submit" class="pull-right btn btn-success">
|
|
{{ 'import_finish_configuration'|_ }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</form>
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|