From 313567cdeccb991529519371c12f18c1fbd59596 Mon Sep 17 00:00:00 2001 From: markusfluer Date: Wed, 27 Dec 2017 18:22:33 +0100 Subject: [PATCH] Dev: reapplied printanswers.twig to contents subviews --- themes/survey/vanilla/config.xml | 6 +++ .../views/subviews/content/printanswers.twig | 42 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 themes/survey/vanilla/views/subviews/content/printanswers.twig diff --git a/themes/survey/vanilla/config.xml b/themes/survey/vanilla/config.xml index bb09497b0e2..5ac7faf2edf 100755 --- a/themes/survey/vanilla/config.xml +++ b/themes/survey/vanilla/config.xml @@ -183,6 +183,12 @@ ./scripts/custom.js + + ./subviews/content/printanswers.twig + ./subviews/printanswers/printanswers_question.twig + ./subviews/printanswers/printanswers_table.twig + + layout_global.twig ./subviews/content/mainrow.twig diff --git a/themes/survey/vanilla/views/subviews/content/printanswers.twig b/themes/survey/vanilla/views/subviews/content/printanswers.twig new file mode 100644 index 00000000000..d330fbf9044 --- /dev/null +++ b/themes/survey/vanilla/views/subviews/content/printanswers.twig @@ -0,0 +1,42 @@ +{# + LimeSurvey + Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac + All rights reserved. + License: GNU/GPL License v2 or later, see LICENSE.php + LimeSurvey is free software. This version may have been modified pursuant + to the GNU General Public License, and as distributed it includes or + is derivative of works licensed under the GNU General Public License or + other free or open source software licenses. + See COPYRIGHT.php for copyright notices and details. + + (¯`·._.·(¯`·._.· Print answers Layout ·._.·´¯)·._.·´¯) + + This file displays the page shown to user when a participant registers for taking a survey. + + NOTE: see layout_main.twig for more infos +#} + + +{# Call the global layout #} +{% extends "./layout_global.twig" %} + +{# Replace the content block #} +{% block body %} + + {% if (aSurveyInfo.printPdf != 1) %} + {% block nav_bar %} + {% endblock %} + {% endif %} + +
+ {% if (aSurveyInfo.printPdf != 1) %} + {# This will display the script and the hidden inputs needed for Expression Manager #} + {{ aSurveyInfo.EM.ScriptsAndHiddenInputs }} + {% endif %} + + {{ include('../printanswers/printanswers_head.twig') }} + {{ include('../printanswers/printanswers_table.twig') }} + {{ include('../printanswers/printanswers_foot.twig') }} +
+ +{% endblock %}