- Posts: 14
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
{# We register a specific css file for that layout. #} {{ registerTemplateCssFile('css/errors.css') }} {% set aError = aSurveyInfo.aError %} {##### CUSTOM ERRORS ####} {% set customErrorTitle = aError.title %} {% set customErrorMessage = aError.message %} {% if aError.type == "survey-expiry" %} {% set customErrorTitle = '<p class=" text-danger inherit-sizes" role="alert">CUSTOM TITLE</p>' %} {% set customErrorMessage = '<p>Custom error message for expired survey!</p>' %} {% endif %} <!DOCTYPE html> <html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}" class="{{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} {{ aSurveyInfo.class.html }}" {{ aSurveyInfo.attr.html }} xmlns="https://www.w3.org/1999/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 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 }}> <div class="container"> <div id="error-card" class="card w-75 mt-6 mb-0 mx-auto"> <div class="card-body"> <h2 class="card-title"> {% if aError.error %} {{ aError.error }} {% endif %} {{ customErrorTitle }} </h2> <hr> <div class="card-text">{{ customErrorMessage }}</div> {% if aError.contact %} {{ aError.contact }} {% else %} {{ gT("For further information please contact %s:")|format (aSurveyInfo.admin) }} {% if aSurveyInfo.adminemail %} <br> <a class="card-link" href='mailto:{{ aSurveyInfo.adminemail }}'>{{ aSurveyInfo.adminemail }}</a> {% endif %} {% endif %} {% if aError.trace is not empty %} <pre> {{ aError.trace }} </pre> {% endif %} </div> </div> </div> {% block footer %} {{ include('./subviews/footer/footer.twig') }} {% endblock %} </body> </html>
Please Log in to join the conversation.