Commit fd2f9c9d authored by Chenu Denis's avatar Chenu Denis

[dev] remove skelvanilla dependance

parent c3da1751
......@@ -14,23 +14,20 @@
<authorUrl>http://www.sondages.pro</authorUrl>
<copyright>Copyright (C) 2018 Denis Chenu / Sondages Pro</copyright>
<license>GNU General Public License version 2 or later</license>
<version>4.0.0</version>
<version>4.1.0</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-01-15 22:53:22</last_update>
<extends>vanilla</extends>
</metadata>
<files>
<css>
<remove>css/ajaxify.css</remove>
<remove>scripts/ajaxify.js</remove>
<remove>bootstrap.css</remove>
<remove>yiistrap.css</remove>
<remove>bootstrap-slider.css</remove>
<remove>awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css</remove>
<remove>awesome-bootstrap-checkbox/awesome-bootstrap-checkbox-rtl.css</remove>
<remove>template-core.css</remove>
<remove>awesome-bootstrap-checkbox.css</remove>
<remove>awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css</remove>
<add>css/skelvanilla.css</add>
<add>css/theme.css</add>
<add>css/custom.css</add>
......@@ -212,6 +209,7 @@
<packages>
<add>moment</add>
<remove>pjax</remove>
<remove>template-core</remove>
<remove>font-noto</remove>
</packages>
......
![LimeSurvey Logo](https://www.limesurvey.org/images/logos/logo_main.png)
# LimeSurvey Bootstrap Vanilla Survey Theme
## Views directory
The view directory contains all the necessary views to render the frontend.
* layout_global.twig: render the pages for survey taking
* layout_user_forms.twig: renders the user forms such as: token (survey participant), and register.
* layout_survey_list.twig: render the survey list (if this theme is set as default)
* layout_errors.twig: used to render errors that block survey rendering. ( wrong survey id, empty group in preview group, etc.)
Each one of the layout can have a complete different look & feel from the other layouts.
In vanilla, layout_user_forms and layout_global are pretty similar, and share some subviews: this is not an obligation at all.
## Content system
layout_global.twig renders the specific content via this statement:
```
{% set sViewContent = './subviews/content/' ~ aSurveyInfo.include_content ~ '.twig' %}
{% include './subviews/content/outerframe.twig' with {'include_content': sViewContent } %}
```
see: https://github.com/LimeSurvey/LimeSurvey/blob/7ffc17fbb872791a9ba1a6b6ab68cec0263f3eca/themes/survey/vanilla/views/layout_global.twig#L103-L111
So, if you're creating a template from scratch, you're free to place the content views where ever you want. Just update the definition of sViewContent in layout_global
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>LimeSurvey</title>
</head>
<body>
</body>
</html>
......@@ -16,7 +16,7 @@
- Contribution are welcome : https://gitlab.com/SondagesPro/SurveyThemes/accessible_vanilla/merge_requests
Remind A11Y issue can be reported to LimeSurvey core too : https://www.limesurvey.org/community/bug-tracker
#}<!DOCTYPE html>
<html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}" class="{{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} {{ aSurveyInfo.class.html }} {{ aSurveyInfo.attr.html }}>
<html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}" class="{{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} {{ aSurveyInfo.class.html }}" {{ aSurveyInfo.attr.html }}>
<!-- {{ aSurveyInfo.options.variation }} -->
{% block head %}
{# Headers, metadata, etc #}
......
{#
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 Layout ·._.·´¯)·._.·´¯)
This is the layout that will be used to print the survey to pdf
If you're creating your own template, remember there is no obligation to respect the current file flow of this template.
This is different from the old LimeSurvey template engine, where you had to provide every one of the pstpl files.
Here, you must have a file called layout_global.twig (called from SurveyRuntimeHelper::run() ).
Other than that, you're free to organize your files and inclusions as you want.
#}
<!DOCTYPE html>
<html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}" class="{{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} {{ aSurveyInfo.class.html }}" {{ aSurveyInfo.attr.html }}>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>{{print.sitename}} - {{ aSurveyInfo.surveyls_title }}</title>
</head>
<body>
<div id="limesurvey">
<h1>{{ aSurveyInfo.surveyls_title }}</h1>
<div class="survey-description">{{ aSurveyInfo.surveyls_description }}</div>
<div class="survey-welcome">{{ aSurveyInfo.surveyls_welcometext }}</div>
<p class="x-questions">{{print.therearexquestions}}</p>
{% for group in print.groups %}
{% set groupTemplate = './subviews/print/print_group.twig' %}
{{ include(groupTemplate) }}
{% endfor %}
{{print.privacy}}
<p class="submit-by">
{{print.end}}<br />
{{print.submit_by}}<br />
{{print.fax_to}}<br />
{{print.submit_text}}<br />
{{print.thanks}}<br />
</p>
</div>
</body>
</html>
{#
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.
(¯`·._.·(¯`·._.· User Forms Layout ·._.·´¯)·._.·´¯)
This file renders the user forms such as: token (survey participant), and register.
=> it is a direct child of layout_global
NOTE: see layout_global.twig for more infos
#}
{% extends "layout_global.twig" %}
![LimeSurvey Logo](https://www.limesurvey.org/images/logos/logo_main.png)
# LimeSurvey Bootstrap Vanilla Survey Theme
## subviews directory
The subview directory contains only subdirectories.
If you're creating a template from scratch, there is no obligation to respect this structure.
* content/
The directory content contains all the subviews render from layout_global.
They are used to render any page directly related to survey taking.
If you're creating a template from scratch, you can place those subviews wherever you want (by updating the path of sViewContent in the global layout).
**But those views must exist with the very same name.**
* header/
Anything on top of the survey form. (including the survey form tag).
*Those subviews are hard included in other views. So if you create a template from scratch, you can named them as you want (or you can even not create them at all)*
* messages/
Messages sent to the user, such as the modals, alerts, warning, welcome, or assesments results
*Those subviews are hard included in other views. So if you create a template from scratch, you can named them as you want (or you can even not create them at all)*
* navigation/
Anything causing a page reload: navigator (next, prev, submit, etc), clear all, save, change language, question index, etc
*Those subviews are hard included in other views. So if you create a template from scratch, you can named them as you want (or you can even not create them at all)*
* printanswers/
The views to print the survey. In future version of LimeSurvey (3.5 or 4.x ) The subfolder "question_type" will not exist anymore, and each question theme will have its own view for the print rendering.
**If you create a template from scratch, you can update the content of those files, but keep the structure of that directory (file name, directories, etc)**
* privacy/
Privacy messages (depends if you're "in all in one" mode or not)
*Those subviews are hard included in other views. So if you create a template from scratch, you can named them as you want (or you can even not create them at all)*
* registration/
The subviews for the content "register.twig"
*Those subviews are hard included in other views. So if you create a template from scratch, you can named them as you want (or you can even not create them at all)*
* survey/
The subviews to render the question groups and the questions.
*Those subviews are hard included in other views. So if you create a template from scratch, you can named them as you want (or you can even not create them at all)*
![LimeSurvey Logo](https://www.limesurvey.org/images/logos/logo_main.png)
# LimeSurvey Bootstrap Vanilla Survey Theme
## content directory
layout_global.twig renders the specific content via this statement:
```
{% set sViewContent = './subviews/content/' ~ aSurveyInfo.include_content ~ '.twig'%}
{% include './subviews/content/outerframe.twig' with {'include_content': sViewContent } %}
```
see: https://github.com/LimeSurvey/LimeSurvey/blob/7ffc17fbb872791a9ba1a6b6ab68cec0263f3eca/themes/survey/vanilla/views/layout_global.twig#L103-L111
Here are the subviews to render the content. Most of them corresponds to the old pstpl files for limesurvey 2.x
* mainrow.twig
* submit_preview.twig
* quotas.twig
* survey_list.twig
* clearall.twig
* register.twig
* firstpage.twig
* load.twig
* outerframe.twig
* submit.twig
* save.twig
* main.twig
If you're creating a template from scratch, you're free to place the content views where ever you want. Just update the definition of sViewContent in layout_global.
**But you must keep the filename as they are.**
Please, contact LimeSurvey team if you think a file name should be changed.
{#
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.
(¯`·._.·(¯`·._.· Clear All Content ·._.·´¯)·._.·´¯)
This file displays the page shown to a respondent when they have cleared the survey (only show "Restart this survey")
NOTE: This content is included inside mainrow.twig
#}
<div class='{{ aSurveyInfo.class.clearall }}' {{ aSurveyInfo.attr.clearall }}>
<div class=" {{ aSurveyInfo.class.clearalldiv }} " {{ aSurveyInfo.attr.clearalldiv }}>
<p>{{ gT("Answers cleared") }}</p>
<a href="{{ aSurveyInfo.surveyUrl }}" class="{{ aSurveyInfo.class.clearalla }}" {{ aSurveyInfo.attr.clearalla }}>{{ gT("Restart this survey") }}</a>
</div>
</div>
{#
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.
(¯`·._.·(¯`·._.· Content First Page ·._.·´¯)·._.·´¯)
This content is included inside mainrow.twig
#}
{# render the layout_global content block #}
{# Include the form opening tag #}
{{ include('./subviews/header/start_form.twig') }} <!-- main form -->
{# This will display the script and the hidden inputs needed for Expression Manager #}
{{ aSurveyInfo.EM.ScriptsAndHiddenInputs }}
{# Include the alert for no JavaScript #}
{{ include('./subviews/messages/no_js_alert.twig') }}
{# Include the language changer selector #}
{{ include('./subviews/navigation/language_changer.twig') }}
{# If survey mode is "All in One", this will add the welcome/privacy messages (if activated) #}
{{ include('./subviews/messages/welcome.twig') }}
{{ include('./subviews/privacy/privacy.twig') }}
{# Presents the navigator #}
{{ include('./subviews/navigation/navigator.twig') }}
</form> <!-- main form -->
{{ registerScript("BasicFirstPageThemeScripts", "
if(window.basicThemeScripts === undefined){
window.basicThemeScripts = new ThemeScripts();
}
basicThemeScripts.initWelcomePage();
", 'POS_POSTSCRIPT') }}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>LimeSurvey</title>
</head>
<body>
</body>
</html>
{#
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.
(¯`·._.·(¯`·._.· Save page Content ·._.·´¯)·._.·´¯)
This file displays the page shown to a respondent when they save the survey to complete it later.
Depending on survey config, a navigator allowing user to change his response can be shown, and a end url
Form data are in: aSurveyInfo.aLoadForm (errors, css classes, captcha, etc)
To show this data, turn debug mode on and copy the following line to the end of the <body> element in this file:
{{ dump(aSurveyInfo.aLoadForm ) }} )
(¯`·._.·(¯`·._.· Advanced ·._.·´¯)·._.·´¯)
The form is generated using the Yii function CHtml::form. You must keep it to get the CRSF token.
Inputs are also generated using the Yii function CHtml. Eg: input textField is generated via CHtml::textField
You can replace those inputs by pure Html (<input type="text" ... />), just be sure to use the correct options (id, classes, required, etc)
@see: http://www.yiiframework.com/wiki/48/by-example-chtml/ , http://www.yiiframework.com/doc/api/1.1/CHtml
NOTE: see layout_global.twig for more infos
NOTE: This content is included inside mainrow.twig
#}
{# This will display the script and the hidden inputs needed for Expression Manager #}
{{ aSurveyInfo.EM.ScriptsAndHiddenInputs }}
<div class="{{ aSurveyInfo.class.savemessage }} well clearfix" {{ aSurveyInfo.attr.savemessage }}>
<div class="{{ aSurveyInfo.class.savemessagetitle }} h2" {{ aSurveyInfo.attr.savemessagetitle }}>{{ gT("Load unfinished survey") }}</div>
<div class="{{ aSurveyInfo.class.savemessagetext }} text-info" {{ aSurveyInfo.attr.savemessagetext }}>
<p {{ aSurveyInfo.attr.savemessagetextp }} > {{ gT("You can load a survey that you have previously saved from this screen.") }} </p>
<p {{ aSurveyInfo.attr.savemessagetextpb }} > {{ gT("Type in the 'name' you used to save the survey, and the password.") }} </p>
</div>
</div>
<div class="{{ aSurveyInfo.class.loadform }}" {{ aSurveyInfo.attr.loadform }}>
{% if count(aSurveyInfo.aLoadForm.aErrors) > 0 %}
<ul class="{{ aSurveyInfo.class.loadformul }} alert alert-danger list-unstyled " {{ aSurveyInfo.attr.loadformul }} >
{% for key,error in aSurveyInfo.aLoadForm.aErrors %}
<li {{ aSurveyInfo.attr.loadformulli }}>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
{#
array of attributes of the form tag.
To add a new attribute, just add an entry:
'attribute' : 'value',
#}
{% set htmlOptions = {
'id' : 'form-load',
'name' : 'form-load',
'class' : aSurveyInfo.class.loadformform,
}
%}
{#
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
#}
<!-- Save Form -->
{{
C.Html.form(
( aSurveyInfo.surveyUrl ),
'post',
(htmlOptions)
)
}}
<!-- Hidden fields -->
{{ aSurveyInfo.aLoadForm.sHiddenField }}
<!-- Name and Password -->
<div class="{{ aSurveyInfo.class.saveform }}" {{ aSurveyInfo.attr.saveform }}>
<!-- Saved name -->
<div class="{{ aSurveyInfo.class.saveformrow }} row form-group " {{ aSurveyInfo.attr.saveformrow }}>
<label class="{{ aSurveyInfo.class.saveformrowlabel }} control-label col-sm-3 " {{ aSurveyInfo.attr.saveformrowlabel }}>
{{ gT("Saved name:") }}
<small class="{{ aSurveyInfo.class.saveformrowlabelsmall }} text-danger asterisk fa fa-asterisk pull-left small" {{ aSurveyInfo.attr.saveformrowlabelsmall }} ></small>
<span class="{{ aSurveyInfo.class.saveformrowlabelspan }} sr-only text-danger asterisk" {{ aSurveyInfo.attr.saveformrowlabelspan }} >{{ gT("Mandatory") }}<span>
</label>
<div class="{{ aSurveyInfo.class.saveformrowcol }} col-sm-7 input-cell" {{ aSurveyInfo.attr.saveformrowcol }}>
<input class="{{ aSurveyInfo.class.saveformrowcolinput }} form-control" {{ aSurveyInfo.attr.saveformrowcolinput }} id="{{ aSurveyInfo.id.saveformrowcolinput }}" >
</div>
</div>
<!-- Password -->
<div class="{{ aSurveyInfo.class.passwordrow }} row form-group " {{ aSurveyInfo.attr.passwordrow }}>
<label class='{{ aSurveyInfo.class.passwordrowcol }} control-label col-sm-3 ' {{ aSurveyInfo.attr.passwordrowcol }} >
{{ gT("Password:") }}
<small class="{{ aSurveyInfo.class.passwordrowcolsmall }} text-danger asterisk fa fa-asterisk pull-left small" {{ aSurveyInfo.attr.passwordrowcolsmall }}></small>
<span class="{{ aSurveyInfo.class.passwordrowcolspan }} sr-only text-danger asterisk" {{ aSurveyInfo.attr.passwordrowcolspan }}>{{ gT("Mandatory") }}<span>
</label>
<div class='{{ aSurveyInfo.class.passwordrowinput }} col-sm-7'>
<input class='form-control' {{ aSurveyInfo.attr.passwordrowinputi }} >
</div>
</div>
{% if aSurveyInfo.aLoadForm.aCaptcha.show %}
<!-- Captcha -->
<div class='{{ aSurveyInfo.class.captcharow }} row form-group ' {{ aSurveyInfo.attr.captcharow }}>
<label class='{{ aSurveyInfo.class.captcharowlabel }} control-label col-sm-3 ' {{ aSurveyInfo.attr.captcharowlabel }}>
{{ gT("Security question:") }}
</label>
<div class='{{ aSurveyInfo.class.captcharowcol }} col-sm-7 ' {{ aSurveyInfo.attr.captcharowcol }}>
<div class='{{ aSurveyInfo.class.captcharowcoldiv }}' {{ aSurveyInfo.attr.captcharowcoldiv }}>
<div class='{{ aSurveyInfo.class.captcharowcoldivdiv }}' {{ aSurveyInfo.attr.captcharowcoldivdiv }} >
<img src="{{ aSurveyInfo.aLoadForm.aCaptcha.sImageUrl }}" {{ aSurveyInfo.attr.captcharowcoldivdivimg }} />
</div>
<input id="{{ aSurveyInfo.id.captcharowcoldivinput }}" class='{{ aSurveyInfo.class.captcharowcoldivinput }} form-control' {{ aSurveyInfo.attr.captcharowcoldivinput }} />
</div>
</div>
</div>
{% endif %}
<!-- load button -->
<div class='{{ aSurveyInfo.class.loadrow }} row form-group ' {{ aSurveyInfo.attr.loadrow }}>
<div class='{{ aSurveyInfo.class.loadrowcol }} col-sm-7 col-md-offset-3 ' {{ aSurveyInfo.attr.loadrowcol }}>
<button class='{{ aSurveyInfo.class.loadrowcolbutton }} btn btn-default' {{ aSurveyInfo.attr.loadrowcolbutton }} >
{{ gT("Load now") }}
</button>
</div>
</div>
</div>
<div class='{{ aSurveyInfo.class.returntosurvey }}' {{ aSurveyInfo.attr.returntosurvey }}>
<div class="{{ aSurveyInfo.class.returntosurveydiv }}" {{ aSurveyInfo.attr.returntosurveydiv }}>
<a href="{{ aSurveyInfo.surveyUrl }}" class="{{ aSurveyInfo.class.returntosurveydiva }}" {{ aSurveyInfo.attr.returntosurveydiva }} >{{ gT("Return to survey") }}</a>
</div>
</div>
</div>
<p>{{ aSurveyInfo.optin_message }} </p>
<p>{{ aSurveyInfo.optin_message }} </p>
{#
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.
(¯`·._.·(¯`·._.· Quotas Content ·._.·´¯)·._.·´¯)
This file displays the page shown to user when a quota limit is reached.
Depending on survey config, a navigator allowing the respondent to change their responses can be shown, and a end url.
Quotas data are in: aSurveyInfo.aQuotas
To show this data, turn debug mode on and copy the following line to the end of the <body> element in this file:
{{ dump(aSurveyInfo.aQuotas ) }} )
NOTE: This content is included inside mainrow.twig
NOTE: see layout_global.twig for more infos
#}
{# Include the form opening tag #}
{{ include('./subviews/header/start_form.twig') }} <!-- main form -->
{# This will display the script and the hidden inputs needed for Expression Manager #}
{{ aSurveyInfo.EM.ScriptsAndHiddenInputs }}
{# completed#}
<div class="{{ aSurveyInfo.class.completedwrapper }}" {{ aSurveyInfo.attr.completedwrapper }}>
{# LS 2.50 Plugins HTML NOTE: plugins should now use the event defined in LSETwigViewRenderer::renderTemplateFromString() #}
{{ aSurveyInfo.aQuotas.sPluginBlocks }}
<div class='{{ aSurveyInfo.class.completedtext }}' {{ aSurveyInfo.attr.completedtext }}>
<div class='{{ aSurveyInfo.class.quotamessage }}' {{ aSurveyInfo.attr.quotamessage }}>
{{ aSurveyInfo.aQuotas.sMessage }}
</div>
{# 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:
'attribute' : 'value',
#}
{% set htmlOptions = {
'id' : 'limesurvey',
'name' : 'limesurvey',
'autocomplete': 'off',
'class' : 'survey-form-container QuotaMessage',
}
%}
{#
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
#}
<!-- Quota form for navigator -->
{{
C.Html.form(
( aSurveyInfo.surveyUrl ),
'post',
(htmlOptions)
)
}}
<div class="{{ aSurveyInfo.class.navigator }} row" id="{{ aSurveyInfo.id.navigator }}" {{ aSurveyInfo.attr.navigator }}>
<!-- Previous button container -->
<div class="{{ aSurveyInfo.class.navigatorcoll }} col-xs-6 text-left" {{ aSurveyInfo.attr.navigatorcoll }}>
<!-- Button previous -->
<button {{ aSurveyInfo.attr.navigatorcollbutton }} value="{{ aSurveyInfo.aQuotas.sQuotaStep }}" class=" {{ aSurveyInfo.class.navigatorcollbutton }} btn btn-lg btn-default " accesskey="p">
{{ gT("Previous") }}
</button>
</div>
<div class=" {{ aSurveyInfo.class.navigatorcolr }} col-xs-6 text-right " {{ aSurveyInfo.attr.navigatorcolr }}>
<!-- Button submit -->
<button {{ aSurveyInfo.attr.navigatorcolrbutton}} class=" {{ aSurveyInfo.class.navigatorcolrbutton}} btn btn-lg btn-primary " accesskey="n">
{{ gT("Submit") }}
</button>
</div>
</div>
{{ aSurveyInfo.aQuotas.hiddeninputs }}
</form>
{% endif %}
{% if(aSurveyInfo.aQuotas.sUrl != '') %}
<div class="{{ aSurveyInfo.class.completedquotaurl }}" {{ aSurveyInfo.attr.completedquotaurl }}>
<a href="{{ aSurveyInfo.aQuotas.sUrl }}" class="{{ aSurveyInfo.class.completedquotaurla }}" {{ aSurveyInfo.attr.completedquotaurla }}>
{{ aSurveyInfo.aQuotas.sUrlDescription }}
</a>
</div>
{% endif %}
</div>
</div>
</form> <!-- main form -->
{#
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.
(¯`·._.·(¯`·._.· Registration Content ·._.·´¯)·._.·´¯)
This file displays the page shown to user when a participant registers for taking a survey.
NOTE: This content is included inside mainrow.twig
NOTE: see layout_global.twig for more infos
#}
<div class="{{ aSurveyInfo.class.register }} container" {{ aSurveyInfo.attr.register }}>
{# This will display the script and the hidden inputs needed for Expression Manager #}
{{ aSurveyInfo.EM.ScriptsAndHiddenInputs }}
<div class="{{ aSurveyInfo.class.registerrow }} row" {{ aSurveyInfo.attr.registerrow }}>
<div class='{{ aSurveyInfo.class.registerrowjumbotron }}' {{ aSurveyInfo.attr.registerrowjumbotron }}>
{{ include('./subviews/registration/register_head.twig') }}
<div class="{{ aSurveyInfo.class.registerrowjumbotrondiv }} container clearfix " {{ aSurveyInfo.attr.registerrowjumbotrondiv }}>
{{ include('./subviews/registration/register_message.twig') }}
</div>
</div>
</div>
{{ include('./subviews/registration/register_error.twig') }}
{% set sViewContent = './subviews/registration/' ~ aSurveyInfo.registration_view ~ '.twig' %}
{% include sViewContent %}
</div>
<input type='hidden' class='hidemenubutton'/>
This diff is collapsed.
{#
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.
(¯`·._.·(¯`·._.· Submit Content ·._.·´¯)·._.·´¯)