Skip to content

Commit

Permalink
Dev: added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 20, 2017
1 parent ea402c1 commit 3827e1d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
29 changes: 28 additions & 1 deletion templates/default/views/group.twig
@@ -1,3 +1,24 @@
{#
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 ·._.·´¯)·._.·´¯)
This file is one of the most important of the rendering progress.
It will display the group, and the questions inside the group via the for statement that include question.twig
Here, you'll have access to the array aGroup that contains the datas of the current group, and the array of questions of this group: aQuestions
To see what's inside aGroup, turn debug mode on, and put out of the comment section this statement: {{ dump(aGroup) }}
#}

<!-- START THE GROUP: {{ aGroup.name }} {{ aGroup.gid }} -->
<div id='group-{{ aGroup.gseq }}' class="{{ aGroup.class }}">
<div class="group-container">
Expand All @@ -12,6 +33,12 @@
</div>
{% endif %}

{#
PRESENT THE QUESTIONS
This is the main part. It will render each question for this group
#}

<!-- PRESENT THE QUESTIONS -->
{% for aQuestion in aGroup.aQuestions %}
{{ include('./question.twig') }}
Expand All @@ -27,4 +54,4 @@
{% endif %}
</div>
</div>
<!-- endgroup: {{ aGroup.name }} {{ aGroup.gid }} -->
<!-- END THE GROUP: {{ aGroup.name }} {{ aGroup.gid }} -->
13 changes: 0 additions & 13 deletions templates/default/views/privacy.twig

This file was deleted.

0 comments on commit 3827e1d

Please sign in to comment.