First commit
This commit is contained in:
commit
b7fcf64bbf
2 changed files with 2180 additions and 0 deletions
30
views/subviews/survey/group_subviews/group_desc.twig
Normal file
30
views/subviews/survey/group_subviews/group_desc.twig
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{#
|
||||
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.
|
||||
|
||||
|
||||
|
||||
(¯`·._.·(¯`·._.· Group Name ·._.·´¯)·._.·´¯)
|
||||
|
||||
Presentation of the group description
|
||||
|
||||
NOTE: see views/subviews/survey/group.twig comments for more infos
|
||||
#}
|
||||
|
||||
{% if aGroup.showgroupinfo == 'D' or aGroup.showgroupinfo == 'B' %}
|
||||
{% if aGroup.description != '' %}
|
||||
<!-- Group description -->
|
||||
<div class="{{ aSurveyInfo.class.groupdesc }} " {{ aSurveyInfo.attr.groupdesc }}>
|
||||
<div>
|
||||
{{ processString(aGroup.description) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
55
views/subviews/survey/question.twig
Normal file
55
views/subviews/survey/question.twig
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{#
|
||||
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.
|
||||
|
||||
|
||||
|
||||
(¯`·._.·(¯`·._.· Question Layout ·._.·´¯)·._.·´¯)
|
||||
|
||||
This file is one of the most important of the rendering progress.
|
||||
It will render a question. It's included in the for loop in group.twig
|
||||
|
||||
Here, you have access to the array aQuestion that contains the data of the current question.
|
||||
To see what's inside aQuestion, turn debug mode on, and copy the following line to the end of this file:
|
||||
{{ dump(aQuestion) }}
|
||||
|
||||
All content of aQuestion itself is generated from qanda_helper.
|
||||
To modify it, you must create a question theme and apply it to the question in its display settings
|
||||
(here, you're inside the survey theme, applied to the survey in its settings).
|
||||
|
||||
#}
|
||||
|
||||
|
||||
{# Showing question code/number is a survey level setting, so it's inside the array aSurveyInfo #}
|
||||
{% set aShow = aSurveyInfo.aShow %}
|
||||
|
||||
<!-- Question {{ aQuestion.code }} -->
|
||||
|
||||
{# Question Text #}
|
||||
{{ include('./subviews/survey/question_subviews/question_text_container.twig') }}
|
||||
|
||||
{# Survey question Help - top position #}
|
||||
{% if aSurveyInfo.options.questionhelptextposition == 'top' %}
|
||||
{{ include('./subviews/survey/question_subviews/survey_question_help.twig') }}
|
||||
{# Valide message and help #}
|
||||
{{ include('./subviews/survey/question_subviews/valid_message_and_help.twig') }}
|
||||
{% endif %}
|
||||
|
||||
{# Answers #}
|
||||
{{ include('./subviews/survey/question_subviews/answers.twig') }}
|
||||
|
||||
{# Survey question Help - bottom position #}
|
||||
{% if aSurveyInfo.options.questionhelptextposition == 'bottom' %}
|
||||
{{ include('./subviews/survey/question_subviews/survey_question_help.twig') }}
|
||||
{# Valide message and help #}
|
||||
{{ include('./subviews/survey/question_subviews/valid_message_and_help.twig') }}
|
||||
{% endif %}
|
||||
|
||||
<!-- End of question {{ aQuestion.code }} -->
|
||||
Loading…
Reference in a new issue