Skip to content

Commit

Permalink
Dev: added clearall_links.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 6, 2017
1 parent f50c351 commit a95a840
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 222 deletions.
233 changes: 11 additions & 222 deletions templates/default/views/startpage.twig
@@ -1,20 +1,17 @@
<!-- startpage.pstl TWIG -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{#
!!!!NOTE!!!!
THIS IS A FIRST TEST TO USE TWIG IN PSTPL FILES
NOW, ANY VARIABLE DISPONIBLE IN $REDATA WILL BE USABLE FROM TEMPLATE FILES
IN THE QUESTION PSTPL, QUESTION OBJECT VARIABLES WILL BE AVAILABLE, SAME FOR GROUP, ETC
This is a first cycle of dev.
Soon, we should have a single layout.twig file with subviews.
#}

HERE WE USE THE ARRAY $aSurveyInfo
SO NOW, IT'S NOT NEEDED TO ADD ANYMORE ANY REPLACEMENT KEYWORD
MOST OF THE HTML GENERATED IN THE DIFFERENT HELPERS (LIKE SAVE_LINKS)
COULD BE PLACED DIRECTLY INSIDE THE PSTPL FILES
{#
If you want to see what is availabe in aSurveyInfo, turn debug mode on and uncomment the following line: {{ dump(aSurveyInfo) }}
#}

<!-- startpage.twig -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{aSurveyInfo.surveyls_title}}</title>
<meta name="generator" content="LimeSurvey http://www.limesurvey.org" />
<link rel="shortcut icon" href="{{templateurl}}favicon.ico" />
Expand All @@ -38,6 +35,7 @@
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right navbar-action-link">
{{ include('./subviews/save_links.twig') }}
{{ include('./subviews/clearall_links.twig') }}
{CLEARALL_LINKS}
{QUESTION_INDEX_MENU}
</ul>
Expand All @@ -56,213 +54,4 @@
<div class="col-centered" id="main-col">

{{ include('./subviews/start_form.twig') }}
<!-- end of startpage.pstl -->

{#
Available in this pstpl file:
TODO: Sandbox the non necessary one
// aSurveyInfo:
{{ aSurveyInfo.template }};
{{ aSurveyInfo.language }};
{{ aSurveyInfo.sid }};
{{ aSurveyInfo.owner_id }};
{{ aSurveyInfo.admin }};
{{ aSurveyInfo.active }};
{{ aSurveyInfo.expires }};
{{ aSurveyInfo.startdate }};
{{ aSurveyInfo.adminemail }};
{{ aSurveyInfo.anonymized }};
{{ aSurveyInfo.faxto }};
{{ aSurveyInfo.savetimings }};
{{ aSurveyInfo.additional_languages }};
{{ aSurveyInfo.datestamp }};
{{ aSurveyInfo.usecookie }};
{{ aSurveyInfo.allowregister }};
{{ aSurveyInfo.allowsave }};
{{ aSurveyInfo.autonumber_start }};
{{ aSurveyInfo.autoredirect }};
{{ aSurveyInfo.allowprev }};
{{ aSurveyInfo.printanswers }};
{{ aSurveyInfo.ipaddr }};
{{ aSurveyInfo.refurl }};
{{ aSurveyInfo.datecreated }};
{{ aSurveyInfo.publicstatistics }};
{{ aSurveyInfo.publicgraphs }};
{{ aSurveyInfo.listpublic }};
{{ aSurveyInfo.sendconfirmation }};
{{ aSurveyInfo.tokenanswerspersistence }};
{{ aSurveyInfo.assessments }};
{{ aSurveyInfo.usecaptcha }};
{{ aSurveyInfo.usetokens }};
{{ aSurveyInfo.bounce_email }};
{{ aSurveyInfo.attributedescriptions }};
{{ aSurveyInfo.emailresponseto }};
{{ aSurveyInfo.emailnotificationto }};
{{ aSurveyInfo.tokenlength }};
{{ aSurveyInfo.showxquestions }};
{{ aSurveyInfo.showgroupinfo }};
{{ aSurveyInfo.shownoanswer }};
{{ aSurveyInfo.showqnumcode }};
{{ aSurveyInfo.bouncetime }};
{{ aSurveyInfo.bounceprocessing }};
{{ aSurveyInfo.bounceaccounttype }};
{{ aSurveyInfo.bounceaccounthost }};
{{ aSurveyInfo.bounceaccountpass }};
{{ aSurveyInfo.bounceaccountencryption }};
{{ aSurveyInfo.bounceaccountuser }};
{{ aSurveyInfo.showwelcome }};
{{ aSurveyInfo.showprogress }};
{{ aSurveyInfo.questionindex }};
{{ aSurveyInfo.navigationdelay }};
{{ aSurveyInfo.nokeyboard }};
{{ aSurveyInfo.alloweditaftercompletion }};
{{ aSurveyInfo.googleanalyticsstyle }};
{{ aSurveyInfo.googleanalyticsapikey }};
{{ aSurveyInfo.format }};
{{ aSurveyInfo.htmlemail }};
{{ aSurveyInfo.surveyls_survey_id }};
{{ aSurveyInfo.surveyls_language }};
{{ aSurveyInfo.surveyls_title }};
{{ aSurveyInfo.surveyls_description }};
{{ aSurveyInfo.surveyls_welcometext }};
{{ aSurveyInfo.surveyls_endtext }};
{{ aSurveyInfo.surveyls_url }};
{{ aSurveyInfo.surveyls_urldescription }};
{{ aSurveyInfo.surveyls_email_invite_subj }};
{{ aSurveyInfo.surveyls_email_invite }};
{{ aSurveyInfo.surveyls_email_remind_subj }};
{{ aSurveyInfo.surveyls_email_remind }};
{{ aSurveyInfo.surveyls_email_register_subj }};
{{ aSurveyInfo.surveyls_email_register }};
{{ aSurveyInfo.surveyls_email_confirm_subj }};
{{ aSurveyInfo.surveyls_email_confirm }};
{{ aSurveyInfo.surveyls_dateformat }};
{{ aSurveyInfo.surveyls_attributecaptions }};
{{ aSurveyInfo.email_admin_notification_subj }};
{{ aSurveyInfo.email_admin_notification }};
{{ aSurveyInfo.email_admin_responses_subj }};
{{ aSurveyInfo.email_admin_responses }};
{{ aSurveyInfo.surveyls_numberformat }};
{{ aSurveyInfo.attachments }};
{{ aSurveyInfo.name }};
{{ aSurveyInfo.description }};
{{ aSurveyInfo.welcome }};
{{ aSurveyInfo.templatedir }};
{{ aSurveyInfo.adminname }};
{{ aSurveyInfo.tablename }};
{{ aSurveyInfo.urldescrip }};
{{ aSurveyInfo.url }};
{{ aSurveyInfo.expiry }};
{{ aSurveyInfo.email_invite_subj }};
{{ aSurveyInfo.email_invite }};
{{ aSurveyInfo.email_remind_subj }};
{{ aSurveyInfo.email_remind }};
{{ aSurveyInfo.email_confirm_subj }};
{{ aSurveyInfo.email_confirm }};
{{ aSurveyInfo.email_register_subj }};
{{ aSurveyInfo.email_register }};
{{ aSurveyInfo.attributecaptions }};
{{ aSurveyInfo.template }};
{{ aSurveyInfo.language }};
{{ aSurveyInfo.sid }};
{{ aSurveyInfo.owner_id }};
{{ aSurveyInfo.admin }};
{{ aSurveyInfo.active }};
{{ aSurveyInfo.expires }};
{{ aSurveyInfo.startdate }};
{{ aSurveyInfo.adminemail }};
{{ aSurveyInfo.anonymized }};
{{ aSurveyInfo.faxto }};
{{ aSurveyInfo.savetimings }};
{{ aSurveyInfo.additional_languages }};
{{ aSurveyInfo.datestamp }};
{{ aSurveyInfo.usecookie }};
{{ aSurveyInfo.allowregister }};
{{ aSurveyInfo.allowsave }};
{{ aSurveyInfo.autonumber_start }};
{{ aSurveyInfo.autoredirect }};
{{ aSurveyInfo.allowprev }};
{{ aSurveyInfo.printanswers }};
{{ aSurveyInfo.ipaddr }};
{{ aSurveyInfo.refurl }};
{{ aSurveyInfo.datecreated }};
{{ aSurveyInfo.publicstatistics }};
{{ aSurveyInfo.publicgraphs }};
{{ aSurveyInfo.listpublic }};
{{ aSurveyInfo.sendconfirmation }};
{{ aSurveyInfo.tokenanswerspersistence }};
{{ aSurveyInfo.assessments }};
{{ aSurveyInfo.usecaptcha }};
{{ aSurveyInfo.usetokens }};
{{ aSurveyInfo.bounce_email }};
{{ aSurveyInfo.attributedescriptions }};
{{ aSurveyInfo.emailresponseto }};
{{ aSurveyInfo.emailnotificationto }};
{{ aSurveyInfo.tokenlength }};
{{ aSurveyInfo.showxquestions }};
{{ aSurveyInfo.showgroupinfo }};
{{ aSurveyInfo.shownoanswer }};
{{ aSurveyInfo.showqnumcode }};
{{ aSurveyInfo.bouncetime }};
{{ aSurveyInfo.bounceprocessing }};
{{ aSurveyInfo.bounceaccounttype }};
{{ aSurveyInfo.bounceaccounthost }};
{{ aSurveyInfo.bounceaccountpass }};
{{ aSurveyInfo.bounceaccountencryption }};
{{ aSurveyInfo.bounceaccountuser }};
{{ aSurveyInfo.showwelcome }};
{{ aSurveyInfo.showprogress }};
{{ aSurveyInfo.questionindex }};
{{ aSurveyInfo.navigationdelay }};
{{ aSurveyInfo.nokeyboard }};
{{ aSurveyInfo.alloweditaftercompletion }};
{{ aSurveyInfo.googleanalyticsstyle }};
{{ aSurveyInfo.googleanalyticsapikey }};
{{ aSurveyInfo.format }};
{{ aSurveyInfo.htmlemail }};
{{ aSurveyInfo.surveyls_survey_id }};
{{ aSurveyInfo.surveyls_language }};
{{ aSurveyInfo.surveyls_title }};
{{ aSurveyInfo.surveyls_description }};
{{ aSurveyInfo.surveyls_welcometext }};
{{ aSurveyInfo.surveyls_endtext }};
{{ aSurveyInfo.surveyls_url }};
{{ aSurveyInfo.surveyls_urldescription }};
{{ aSurveyInfo.surveyls_email_invite_subj }};
{{ aSurveyInfo.surveyls_email_invite }};
{{ aSurveyInfo.surveyls_email_remind_subj }};
{{ aSurveyInfo.surveyls_email_remind }};
{{ aSurveyInfo.surveyls_email_register_subj }};
{{ aSurveyInfo.surveyls_email_register }};
{{ aSurveyInfo.surveyls_email_confirm_subj }};
{{ aSurveyInfo.surveyls_email_confirm }};
{{ aSurveyInfo.surveyls_dateformat }};
{{ aSurveyInfo.surveyls_attributecaptions }};
{{ aSurveyInfo.email_admin_notification_subj }};
{{ aSurveyInfo.email_admin_notification }};
{{ aSurveyInfo.email_admin_responses_subj }};
{{ aSurveyInfo.email_admin_responses }};
{{ aSurveyInfo.surveyls_numberformat }};
{{ aSurveyInfo.attachments }};
{{ aSurveyInfo.name }};
{{ aSurveyInfo.description }};
{{ aSurveyInfo.welcome }};
{{ aSurveyInfo.templatedir }};
{{ aSurveyInfo.adminname }};
{{ aSurveyInfo.tablename }};
{{ aSurveyInfo.urldescrip }};
{{ aSurveyInfo.url }};
{{ aSurveyInfo.expiry }};
{{ aSurveyInfo.email_invite_subj }};
{{ aSurveyInfo.email_invite }};
{{ aSurveyInfo.email_remind_subj }};
{{ aSurveyInfo.email_remind }};
{{ aSurveyInfo.email_confirm_subj }};
{{ aSurveyInfo.email_confirm }};
{{ aSurveyInfo.email_register_subj }};
{{ aSurveyInfo.email_register }};
{{ aSurveyInfo.attributecaptions }};
#}
<!-- end of startpage.twig -->
Empty file.

0 comments on commit a95a840

Please sign in to comment.