Move options.twig into import.twig

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
Maurício Meneghini Fauth 2017-11-29 20:48:26 -02:00
parent 55641774f6
commit c5dfe379eb
2 changed files with 12 additions and 17 deletions

View File

@ -30,11 +30,18 @@
'table': table
} only %}
{% include 'display/import/options.twig' with {
'import_type': import_type,
'db': db,
'table': table
} only %}
<div class="exportoptions" id="header">
<h2>
{{ Util_getImage('b_import', 'Import'|trans) }}
{% if import_type == 'server' %}
{% trans 'Importing into the current server' %}
{% elseif import_type == 'database' %}
{{ 'Importing into the database "%s"'|trans|format(db) }}
{% else %}
{{ 'Importing into the table "%s"'|trans|format(table) }}
{% endif %}
</h2>
</div>
<div class="importoptions">
<h3>{% trans 'File to import:' %}</h3>

View File

@ -1,12 +0,0 @@
<div class="exportoptions" id="header">
<h2>
{{ Util_getImage('b_import', 'Import'|trans) }}
{% if import_type == 'server' %}
{% trans 'Importing into the current server' %}
{% elseif import_type == 'database' %}
{{ 'Importing into the database "%s"'|trans|format(db) }}
{% else %}
{{ 'Importing into the table "%s"'|trans|format(table) }}
{% endif %}
</h2>
</div>