From ff50e234e5acb551dcddfe57bf8f2c1e3defa51e Mon Sep 17 00:00:00 2001 From: LouisGac Date: Wed, 19 Apr 2017 11:25:00 +0200 Subject: [PATCH] Dev: commented layout_quotas --- templates/default/views/layout_quotas.twig | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/templates/default/views/layout_quotas.twig b/templates/default/views/layout_quotas.twig index 469ba14cf0c..a594092d010 100644 --- a/templates/default/views/layout_quotas.twig +++ b/templates/default/views/layout_quotas.twig @@ -8,7 +8,15 @@ 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. + + (¯`·._.·(¯`·._.· Quotas Layout ·._.·´¯)·._.·´¯) + + This file display the page shown to user when a quota limit is reached. + Depending on survey config, a navigator allowing user to change his response can be shown, and a end url + + quotas datas are in: aSurveyInfo.aQuotas (to show those datas, turn debug mode on, and: {{ dump(aSurveyInfo.aQuotas ) }} ) #} + @@ -41,7 +49,7 @@ {# completed#}
- {# Plugins HTML#} + {# LS 2.50 Plugins HTML NOTE: plugins should now use the event defined in LSETwigViewRenderer::renderTemplateFromString() #} {{ aSurveyInfo.aQuotas.sPluginBlocks }}
@@ -49,8 +57,9 @@ {{ aSurveyInfo.aQuotas.sMessage }}
- {# Navigator for quota page is pretty different from the classical navigator. #} + {# Navigator for quota page is pretty different from the classical navigator. So we can't include the navigator.twig #} {% if (aSurveyInfo.aQuotas.bShowNavigator) %} + {# array of attributes of the form tag. To add a new attribute, just add an entry: @@ -64,7 +73,11 @@ } %} - + {# + It generates the opening form tag and the CRSF token + It uses the Yii fuction CHtml::form + @see: http://www.yiiframework.com/doc/api/1.1/CHtml#form-detail + #} {{ C.Html.form( @@ -118,9 +131,6 @@
- {# Bootstrap alert modal #} - {{ include('./subviews/bootstrap_alert_modal.twig') }} -