Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
customization simpleSAMLphp
Commits
e0b5eff5
Commit
e0b5eff5
authored
Nov 13, 2020
by
Wolfgang Knopki
Browse files
added admin loginform
parent
6e47a241
Changes
2
Hide whitespace changes
Inline
Side-by-side
mymodule/themes/fancytheme/admin/loginuserpass.twig
deleted
100644 → 0
View file @
6e47a241
{%
extends
"@core/base.twig"
%}
{%
block
preload
%}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/Login-Form-Clean.css"
>
{%
endblock
%}
{%
block
postload
%}
<script
src=
"
{{
asset
(
'js/loginuserpass.js'
,
'core'
)
}}
"
></script>
{%
endblock
%}
{%
block
content
%}
<div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
style=
"margin-bottom: 40px;"
><img
class=
"mx-auto"
src=
"/img/Anmelden.png"
width=
"100%"
></div>
</div>
</div>
<div
class=
"login-clean"
style=
"background-color: rgb(234,234,234);"
>
<form
method=
"post"
>
<h2
class=
"sr-only"
>
Login Form
</h2>
<div
class=
"illustration"
><img
src=
"/img/M4_LAB_LOGO.png"
width=
"130"
></div>
<div
class=
"form-group"
><input
id=
"username"
class=
"form-control"
type=
"text"
name=
"username"
placeholder=
"Administrator"
></div>
<div
class=
"form-group"
><input
id=
"password"
class=
"form-control"
type=
"password"
name=
"password"
placeholder=
"Passwort"
></div><a
class=
"text-right forgot"
href=
"/account/forgotPwd"
>
Passwort vergessen?
</a>
<div
class=
"form-group"
><button
class=
"btn btn-primary btn-block"
type=
"submit"
style=
"background-color: #8a348b;"
><strong>
Anmelden
</strong></button><a
class=
"btn btn-primary btn-block"
type=
""
style=
"background-color: rgb(234,234,234);color: rgb(0,0,0);"
href=
"/account/registration"
><strong>
Neues Benutzerkonto anlegen
</strong></a></div>
</form>
</div>
</div>
{%
endblock
%}
mymodule/themes/fancytheme/core/loginuserpass.twig
View file @
e0b5eff5
...
...
@@ -20,7 +20,11 @@
<form
method=
"post"
>
<h2
class=
"sr-only"
>
Login Form
</h2>
<div
class=
"illustration"
><img
src=
"/img/M4_LAB_LOGO.png"
width=
"130"
></div>
<div
class=
"form-group"
><input
id=
"username"
class=
"form-control"
type=
"email"
name=
"username"
placeholder=
"E-Mail-Adresse"
></div>
{%
-
if
'admin'
in
app.request.query.get
(
"AuthState"
)
-
%}
<div
class=
"form-group"
><input
id=
"username"
class=
"form-control"
type=
"email"
name=
"username"
placeholder=
"E-Mail-Adresse"
></div>
{%
-
else
-
%}
<div
class=
"form-group"
><input
id=
"username"
class=
"form-control"
type=
"email"
name=
"username"
placeholder=
"E-Mail-Adresse"
></div>
{%
-
endif
-
%}
<div
class=
"form-group"
><input
id=
"password"
class=
"form-control"
type=
"password"
name=
"password"
placeholder=
"Passwort"
></div><a
class=
"text-right forgot"
href=
"/account/forgotPwd"
>
Passwort vergessen?
</a>
<div
class=
"form-group"
><button
class=
"btn btn-primary btn-block"
type=
"submit"
style=
"background-color: #8a348b;"
><strong>
Anmelden
</strong></button><a
class=
"btn btn-primary btn-block"
type=
""
style=
"background-color: rgb(234,234,234);color: rgb(0,0,0);"
href=
"/account/registration"
><strong>
Neues Benutzerkonto anlegen
</strong></a></div>
</form>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment