From 96359aae7e17ff779dc8fad8da7fa3ce684c607f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Mac=C3=ADas=20Luna?= <lonoak@users.noreply.github.com> Date: Wed, 6 Dec 2017 15:52:28 +0100 Subject: [PATCH] Added preproduction module twig template --- modules/preprodwarning/templates/warning.twig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/preprodwarning/templates/warning.twig diff --git a/modules/preprodwarning/templates/warning.twig b/modules/preprodwarning/templates/warning.twig new file mode 100644 index 000000000..ceb48dd4f --- /dev/null +++ b/modules/preprodwarning/templates/warning.twig @@ -0,0 +1,19 @@ +{% set pagetitle = 'Warning about accessing a pre-production system'|trans %} +{% extends "base.twig" %} + +{% block content %} + +<form action="{{ yesTarget }}"> + + <p>{% trans %}You are now accessing a pre-production system. This authentication setup is for testing and pre-production verification only. If someone sent you a link that pointed you here, and you are not <i>a tester</i> you probably got the wrong link, and should <b>not be here</b>.{% endtrans %}</p><br /> +{% for name,value in yesData %} + <input type="hidden" name="{{ name }}" value="{{ value }}" /> +{% endfor %} +<p> + <input type="submit" name="yes" class="pure-button pure-button-primary" value="{{'Yes, I know I am accessing a pre-production system'|trans}}" /> + +</p> + +</form> + +{% endblock %} -- GitLab