Fix some things in import routine.

This commit is contained in:
James Cole
2018-01-04 08:59:39 +01:00
parent 3ce5ccb98a
commit 6b59b6de6e
4 changed files with 13 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ return [
'file_map_field_mapped_to' => 'Mapped to',
'map_do_not_map' => '(do not map)',
'file_map_submit' => 'Start the import',
'file_nothing_to_map' => 'There is no data present in your file that you can map to existing values. Please press "Start the import" to continue.',
// map things.
'column__ignore' => '(ignore this column)',

View File

@@ -17,6 +17,11 @@
<p>
{{ trans('import.file_map_text') }}
</p>
{% if data|length == 0 %}
<p class="text-danger">
{{ trans('import.file_nothing_to_map') }}
</p>
{% endif %}
</div>
</div>
@@ -25,6 +30,8 @@
<form action="{{ route('import.configure.post', job.key) }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
{% for field in data %}
<div class="row">
<div class="col-lg-12">