From 3de5ccad98b7bc427942b542e21c0c3c0f8e7d65 Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki Date: Thu, 12 Nov 2020 15:31:58 +0100 Subject: [PATCH] added twig loginuserpass --- .../themes/fancytheme/core/loginuserpass.twig | 135 ++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 mymodule/themes/fancytheme/core/loginuserpass.twig diff --git a/mymodule/themes/fancytheme/core/loginuserpass.twig b/mymodule/themes/fancytheme/core/loginuserpass.twig new file mode 100644 index 0000000..788c483 --- /dev/null +++ b/mymodule/themes/fancytheme/core/loginuserpass.twig @@ -0,0 +1,135 @@ +% set pagetitle = 'Enter your username and password'|trans %} + +{% extends "@core/base.twig" %} + +{% block postload %} + +{% endblock %} + +{% block content %} + {%- if not isProduction %} + +
+ {% 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 a tester you + {#- #} probably got the wrong link, and should not be here.{% endtrans %} +
+ {% endif -%} + {% if errorcode -%} +
+
+
+ + {% set errtitles = errorcodes['title'] %} + {% set errtitle = errtitles[errorcode] %} + +

{{ errtitle|trans(errorparams) }}

+ + {% set errdescs = errorcodes['descr'] %} + {% set errdesc = errdescs[errorcode] %} + +

{{ errdesc|trans(errorparams) }}

+ +
+
+
+ {%- endif %} + +

{{ 'Enter your username and password'|trans }} einself

+ +

{{ 'A service has requested you to authenticate yourself. Please enter your username and password in the form below.'|trans }}

+
+
+
+
+ +
+ + + {% if rememberUsernameEnabled and not forceUsername -%} +
+
+ + {%- endif %} +
+ +
+ + + + {% if rememberMeEnabled -%} +
+
+ + {%- endif %} +
+ {% if organizations is defined -%} +
+ +
+ +
+ {% if rememberOrganizationEnabled is defined -%} +
+ +
+ {%- endif %} +
+ {%- endif %} + +
+

+ {%- for name, value in stateparams %} + + + {%- endfor %} + + +
+
+ {% if links -%} + + {%- endif %} + +

+
+ {{ 'Help! I don\'t remember my password.'|trans }} +

{{ 'Without your username and password you cannot authenticate yourself for access to the service. There may be someone that can help you. Consult the help desk at your organization!'|trans }}

+
+ +{% endblock %} -- GitLab