Skip to content

Commit

Permalink
Dev: added no_js_alert.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 17, 2017
1 parent f72ee47 commit 303a48d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
20 changes: 6 additions & 14 deletions templates/default/views/startpage.twig
Expand Up @@ -23,14 +23,12 @@

<body class="default lang-{{surveylanguage}} {{surveyformat}}">

{{ include('./subviews/navbar.twig') }}
{# Bootstrap Navigation Bar #}
{{ include('./subviews/nav_bar.twig') }}

{# Top Container #}
{{ include('./subviews/top_container.twig') }}

<!-- Top container -->
<div class="top-container">
<div class="container top-content">
{{ include('./subviews/percent_complete.twig') }}
</div> <!-- must hide it without javascript -->
</div>

<div class="outerframe container" id="outerframeContainer">
<div id="main-row">
Expand All @@ -41,13 +39,7 @@
{# include the form tag #}
{{ include('./subviews/start_form.twig') }}

<!-- No JavaScript alert -->
<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>
{{ include('./subviews/no_js_alert.twig') }}

{# If survey mode is "All in One", it will add the welcome/privacy messages if needed #}
{{ include('./subviews/allinone_mode_welcome_privacy.twig') }}
Expand Down
7 changes: 7 additions & 0 deletions templates/default/views/subviews/no_js_alert.twig
@@ -0,0 +1,7 @@
<!-- No JavaScript alert -->
<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>

0 comments on commit 303a48d

Please sign in to comment.