From 7037b5dcd4de190b87548f39d676f69769afe4d3 Mon Sep 17 00:00:00 2001 From: LouisGac Date: Thu, 29 Jun 2017 14:08:56 +0200 Subject: [PATCH] Dev: layout_submit_preview extends layout_global --- .../default/views/layout_submit_preview.twig | 91 ++++++------------- 1 file changed, 28 insertions(+), 63 deletions(-) diff --git a/templates/default/views/layout_submit_preview.twig b/templates/default/views/layout_submit_preview.twig index 7fe5816999e..9590e8f5254 100644 --- a/templates/default/views/layout_submit_preview.twig +++ b/templates/default/views/layout_submit_preview.twig @@ -13,75 +13,40 @@ adding the warning message "Your survey responses have not been recorded. This survey is not yet active." to aSurveyInfo.errorHtml.messages #} - - - {# Headers, metadatas, etc #} - {{ include('./subviews/head.twig') }} +{# Call the global layout #} +{% extends "./layout_global.twig" %} - +{# Replace the content block #} +{% block content %} - {# Bootstrap Navigation Bar: the top menu #} - {{ include('./subviews/nav_bar.twig') }} + {# render the layout_global content block #} + {{ parent() }} - {# Top Container: in this template, it contains only #} - {{ include('./subviews/progess_bar.twig') }} - -
+ {# include the form opening tag #} + + {{ include('./subviews/start_form.twig') }} - -
- -
+
+
+ {# Assessments #} + {% if (aSurveyInfo.aAssessments.show) %} + {{ include('./subviews/assessments.twig') }} + {% endif %} - {# include the various Warnings (preview mode, unanswered mandatory questions, etc) #} - {{ include('./subviews/warnings.twig') }} +
+ + + {{ "Did Not Save" | t }} + + +

- {# include the form opening tag #} - - {{ include('./subviews/start_form.twig') }} - - -
-
- {# Assessments #} - {% if (aSurveyInfo.aAssessments.show) %} - {{ include('./subviews/assessments.twig') }} - {% endif %} - -
- - - {{ "Did Not Save" | t }} - - -

- - {{ "Your survey responses have not been recorded. This survey is not yet active." | t }}) -

-
-
- - - -
-
-
- - {# Bootstrap alert modal #} - {{ include('./subviews/bootstrap_alert_modal.twig') }} - - - - - - + {{ "Your survey responses have not been recorded. This survey is not yet active." | t }}) +

+
+
+ +{% endblock %}