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
b0e9dff4
Commit
b0e9dff4
authored
Nov 13, 2020
by
Wolfgang Knopki
Browse files
admin field, global css Login-clean
parent
e0b5eff5
Changes
2
Hide whitespace changes
Inline
Side-by-side
mymodule/themes/fancytheme/core/loginuserpass.twig
View file @
b0e9dff4
{%
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
%}
...
...
@@ -20,8 +16,8 @@
<form
method=
"post"
>
<h2
class=
"sr-only"
>
Login Form
</h2>
<div
class=
"illustration"
><img
src=
"/img/M4_LAB_LOGO.png"
width=
"130"
></div>
{%
-
if
'admin'
in
a
pp.request.query.get
(
"AuthState"
)
-
%}
<div
class=
"form-group"
><input
id=
"username"
class=
"form-control"
type=
"
email
"
name=
"username"
placeholder=
"
E-Mail-Adresse
"
></div>
{%
-
if
'admin'
in
a
ttribute
(
queryParams
,
"AuthState"
)
-
%}
<div
class=
"form-group"
><input
id=
"username"
class=
"form-control"
type=
"
text
"
name=
"username"
placeholder=
"
Administrator
"
></div>
{%
-
else
-
%}
<div
class=
"form-group"
><input
id=
"username"
class=
"form-control"
type=
"email"
name=
"username"
placeholder=
"E-Mail-Adresse"
></div>
{%
-
endif
-
%}
...
...
mymodule/themes/fancytheme/default/base.twig
View file @
b0e9dff4
...
...
@@ -8,6 +8,7 @@
<link
rel=
"stylesheet"
href=
"
{{
asset
(
"css/stylesheet.css"
)
}}
"
>
<link
rel=
"stylesheet"
href=
"/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"/css/m4lab.css"
>
<link
rel=
"stylesheet"
href=
"/css/Login-Form-Clean.css"
>
<link
rel=
"stylesheet"
href=
"https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity=
"sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"
crossorigin=
"anonymous"
>
<link
rel=
"icon"
href=
"
{{
asset
(
"icons/favicon.ico"
)
}}
"
>
{%
if
isRTL
%}
...
...
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