From 3202480c7b85458a0ece7ab7b0bb4bd75c5d14d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 29 Nov 2017 20:45:58 -0200 Subject: [PATCH] Move partial_import_option.twig into import.twig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- templates/display/import/import.twig | 40 +++++++++++++++++-- .../display/import/partial_import_option.twig | 36 ----------------- 2 files changed, 36 insertions(+), 40 deletions(-) delete mode 100644 templates/display/import/partial_import_option.twig diff --git a/templates/display/import/import.twig b/templates/display/import/import.twig index 209eb2edaf..054f6a6608 100644 --- a/templates/display/import/import.twig +++ b/templates/display/import/import.twig @@ -51,10 +51,42 @@ 'disable_is': disable_is } only %} - {% include 'display/import/partial_import_option.twig' with { - 'timeout_passed': timeout_passed, - 'offset': offset - } only %} +
+

{% trans 'Partial import:' %}

+ + {% if timeout_passed is defined and timeout_passed %} +
+ + {{ 'Previous import timed out, after resubmitting will continue from position %d.'|trans|format(offset) }} +
+ {% endif %} + +
+ + +
+ + {% if not (timeout_passed is defined and timeout_passed) %} +
+ + +
+ {% else %} + {# If timeout has passed, + do not show the Skip dialog to avoid the risk of someone + entering a value here that would interfere with "skip" #} + + {% endif %} +

{% trans 'Other options:' %}

diff --git a/templates/display/import/partial_import_option.twig b/templates/display/import/partial_import_option.twig deleted file mode 100644 index a454293630..0000000000 --- a/templates/display/import/partial_import_option.twig +++ /dev/null @@ -1,36 +0,0 @@ -
-

{% trans 'Partial import:' %}

- - {% if timeout_passed is defined and timeout_passed %} -
- - {{ 'Previous import timed out, after resubmitting will continue from position %d.'|trans|format(offset) }} -
- {% endif %} - -
- - -
- - {% if not (timeout_passed is defined and timeout_passed) %} -
- - -
- {% else %} - {# If timeout has passed, - do not show the Skip dialog to avoid the risk of someone - entering a value here that would interfere with "skip" #} - - {% endif %} -