From e366d436d7e726f66664e62bfdd8d9e94572ccb9 Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki Date: Thu, 12 Nov 2020 15:48:24 +0100 Subject: [PATCH] added twig loginuserpass --- .../themes/fancytheme/core/loginuserpass.twig | 134 ++---------------- 1 file changed, 9 insertions(+), 125 deletions(-) diff --git a/mymodule/themes/fancytheme/core/loginuserpass.twig b/mymodule/themes/fancytheme/core/loginuserpass.twig index 65582dc..842044d 100644 --- a/mymodule/themes/fancytheme/core/loginuserpass.twig +++ b/mymodule/themes/fancytheme/core/loginuserpass.twig @@ -1,5 +1,3 @@ -{ % set pagetitle = 'Enter your username and password'|trans %} - {% extends "@mymodule/base.twig" %} {% block postload %} @@ -7,129 +5,15 @@ {% 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