Commit a732b2a8 authored by Chenu Denis's avatar Chenu Denis

[fix] Respect the group name settings in print controller

[fix] Do not add id on survey and group in print controller
parent e593a88e
......@@ -16,7 +16,7 @@
<supportUrl>https://extensions.sondages.pro/themes-and-templates/skelvanilla-a11y-and-usuability/</supportUrl>
<copyright>Copyright (C) 2018-2019 Denis Chenu / Sondages Pro</copyright>
<license>GNU General Public License version 3 or later</license>
<version>7.1.0</version>
<version>7.1.1</version>
<apiVersion>3</apiVersion>
<description><![CDATA[<strong>LimeSurvey Bootstrap Vanilla Survey Theme with Accessibility and Options</strong><br>Base on vanilla theme, usage of more aria, fix some role and aria from core.<br>Allow usage of a lot of variations, list of variation can be updated. Some decoration option using boostrap class.]]></description>
<last_update>2019-10-25 14:31:50</last_update>
......
{% if (not aSurveyInfo.printPdf) %}
</div>
{% endif %}
......@@ -16,8 +16,8 @@
It is used for the rendering of the responses at the end of the survey.
#}
{% if (not aSurveyInfo.printPdf) %}
<div class="container-fluid">
{% if (not aSurveyInfo.printPdf) %}
<div class="row hidden-print">
<div class="col-sm-6">
{{ C.Html.form(aSurveyInfo.printAnswersHeadFormUrl, 'post') }}
......@@ -30,7 +30,7 @@
{{ C.Html.endForm }}
</div>
</div>
{% endif %}
{% endif %}
<tr class="question-container-printanswers">
{% block question_name %}
<th style="width:40%" class="text-right">
{{question.question}} ({{question.qid}})
{{question.question}}
</th>
{% endblock %}
<td style="width:60%">
......
{% if (not aSurveyInfo.printPdf) %}
<h2>{{ gT("Survey name (ID):") }} {{aSurveyInfo.surveyls_title}} ({{aSurveyInfo.sid}})</h2>
<h2>{{aSurveyInfo.surveyls_title}}</h2>
{% endif %}
{% set groupcount = 0 %}
<table class="table table-bordered">
{% for groupid,group in aSurveyInfo.groupArray %}
<tbody class="groupSection {% if groupcount %}page-break-before{% endif %}">
<tr class="groupheader"><th colspan="2"><strong class="h4">{{group.group_name}} ({{group.gid}})</strong></th></tr>
<tbody class="groupSection {% if groupcount %}page-break-before{% endif %}">
{% if ( (aSurveyInfo.showgroupinfo == 'N' or aSurveyInfo.showgroupinfo == 'B') and group.group_name ) %}
<tr class="groupheader"><th colspan="2"><strong class="h3">{{group.group_name}}</strong></th></tr>
{% endif %}
{% for questionId,question in group.answerArray %}
{% set questionTemplate = './subviews/printanswers/question_types/template_' ~ question.questionclass ~ '.twig' %}
{{ include(questionTemplate) }}
{% set questionTemplate = './subviews/printanswers/question_types/template_' ~ question.questionclass ~ '.twig' %}
{{ include(questionTemplate) }}
{% endfor %}
</tbody>
{% set groupcount = groupcount+1 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment