Skip to content

Commit

Permalink
Dev: reapplied printanswers.twig to contents subviews
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Dec 27, 2017
1 parent ad85f93 commit 313567c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions themes/survey/vanilla/config.xml
Expand Up @@ -183,6 +183,12 @@
<file type="js">./scripts/custom.js</file>
</load>

<printanswers>
<file type="view" role="layout">./subviews/content/printanswers.twig</file>
<file type="view" role="layout">./subviews/printanswers/printanswers_question.twig</file>
<file type="view" role="layout">./subviews/printanswers/printanswers_table.twig</file>
</printanswers>

<save>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
Expand Down
42 changes: 42 additions & 0 deletions 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 %}

<section>
{% 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') }}
</section>

{% endblock %}

0 comments on commit 313567c

Please sign in to comment.