- Posts: 33
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
{{ registerTemplateCssFile('css/errors.css') }} {% set aError = aSurveyInfo.aError %} {% set customContent = false %} {% if aError.type == 'survey-notstart' %} {% set customContent = true %} {% endif %} <!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" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title> {% if customContent == true %} My custom title. {% elseif aError.error %} {{ aError.error }} {% else %} Error {{ aSurveyInfo.surveyls_title }} {% endif %} </title> <meta name="generator" content="LimeSurvey https://www.limesurvey.org" /> {% if(imageSrc('./files/favicon.ico')) %} <link rel="shortcut icon" href="{{ imageSrc('./files/favicon.ico') }}" /> {% endif %} </head> <body class="{{ aSurveyInfo.class.body }} lang-{{aSurveyInfo.languagecode}} {{surveyformat}}" marginwidth="0" marginheight="0" {{ aSurveyInfo.attr.body }}> <article id="block_error"> <div> {% if aError.error %} <h1>{{ aError.error }}</h1> {% endif %} {% if customContent == true %} <h2>My custom error header</h2> <p> Oops, it looks like you have already completed this survey. </p> <p> <a href='https://google.com'>Please click here to select another survey.</a> </p> {% else %} <h2>{{ aError.title }}</h2> <p> {{ aError.message }} </p> <p> {% if aError.contact %} {{ aError.contact }} {% else %} {{gT("For further information please contact %s:")|format (aSurveyInfo.admin)}} {% if aSurveyInfo.adminemail %} <br> <a href='mailto:{{ aSurveyInfo.adminemail }}'>{{ aSurveyInfo.adminemail }}</a> {% endif %} {% endif %} </p> {% endif %} </div> {% if aError.trace is not empty %} <pre> {{ aError.trace }} </pre> {% endif %} <div> </div> </article> {% block footer %} {{ include('./subviews/footer/footer.twig') }} {% endblock %} </body> </html>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
{{ dump(aError) }}
Please Log in to join the conversation.
Please Log in to join the conversation.
{% set customContent = false %} {% if 'You have already completed this survey' in aError.message %} {% set customContent = true %} {% endif %}
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.