Skip to content

Commit

Permalink
Dev: added welcome.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 11, 2017
1 parent 1f6e179 commit d9c6626
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions templates/default/views/welcome.twig
@@ -0,0 +1,25 @@
{#
Show the welcome page
#}
<div class='alert alert-danger ls-js-hidden warningjs' data-type='checkjavascript'>
{{ "Caution: JavaScript execution is disabled in your browser or for this website. You may not be able to answer all questions in this survey. Please, verify your browser parameters." | t }}
</div>

<div id="welcome-container">
<h1 class="survey-name text-center">{{ aSurveyInfo.name }}</h1>
<div class="text-info text-center survey-description">{{ aSurveyInfo.description }}</div>
<div class="survey-welcome h4 text-primary">{{ aSurveyInfo.welcome }}</div>
<div class="number-of-questions text-muted">
<div class='question-count-text'>
{% if aSurveyInfo.bShowxquestions == true %}
{% if aSurveyInfo.iTotalquestions < 1 %}
{{ "There is no question in this survey" | t }}
{% elseif aSurveyInfo.iTotalquestions == 1 %}
{{ "There is 1 question in this survey" | t }}
{% else %}
{{ "There are " ~ aSurveyInfo.iTotalquestions ~ " questions in this survey." | t}}
{% endif %}
{% endif %}
</div>
</div>
</div>

0 comments on commit d9c6626

Please sign in to comment.