Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
ab28b2e4
Commit
ab28b2e4
authored
2 years ago
by
Thijs Kinkhorst
Browse files
Options
Downloads
Patches
Plain Diff
De-uglify login form when checkbox shown
parent
ffc60d22
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/core/templates/loginuserpass.twig
+15
-18
15 additions, 18 deletions
modules/core/templates/loginuserpass.twig
resources/css/default.scss
+9
-11
9 additions, 11 deletions
resources/css/default.scss
with
24 additions
and
29 deletions
modules/core/templates/loginuserpass.twig
+
15
−
18
View file @
ab28b2e4
...
@@ -36,11 +36,8 @@
...
@@ -36,11 +36,8 @@
<h1>
{{
'Enter your username and password'
|
trans
}}
</h1>
<h1>
{{
'Enter your username and password'
|
trans
}}
</h1>
<p>
{{
'A service has requested you to authenticate yourself. Please enter your username and password in the form below.'
|
trans
}}
</p>
<p>
{{
'A service has requested you to authenticate yourself. Please enter your username and password in the form below.'
|
trans
}}
</p>
<br>
<div
class=
"center-form login-form-start"
>
<div
class=
"center"
>
<form
id=
"f"
class=
"pure-form pure-form-aligned"
action=
"
{{
moduleURL
(
'core/loginuserpass'
,
{
'AuthState'
:
AuthState
}
)
}}
"
method=
"post"
name=
"f"
>
<form
id=
"f"
class=
"pure-form pure-form-aligned center-form"
action=
"
{{
moduleURL
(
'core/loginuserpass'
,
{
'AuthState'
:
AuthState
}
)
}}
"
method=
"post"
name=
"f"
>
<div
class=
"form-align"
>
<div
class=
"pure-control-group"
>
<div
class=
"pure-control-group"
>
<label
for=
"username"
>
{{
'Username'
|
trans
}}
</label>
<label
for=
"username"
>
{{
'Username'
|
trans
}}
</label>
<input
id=
"username"
{{
forceUsername
?
'disabled'
}}
placeholder=
"
{{
username
}}
"
type=
"text"
name=
"username"
class=
"edge"
<input
id=
"username"
{{
forceUsername
?
'disabled'
}}
placeholder=
"
{{
username
}}
"
type=
"text"
name=
"username"
class=
"edge"
...
@@ -48,7 +45,7 @@
...
@@ -48,7 +45,7 @@
{%
-
if
not
forceUsername
and
not
username
%}
autofocus
{%
endif
%}
>
{%
-
if
not
forceUsername
and
not
username
%}
autofocus
{%
endif
%}
>
{%
if
rememberUsernameEnabled
and
not
forceUsername
-
%}
{%
if
rememberUsernameEnabled
and
not
forceUsername
-
%}
</div>
</div>
<div
class=
"pure-controls
pure-form-message
"
>
<div
class=
"pure-controls"
>
<label
for=
"remember_username"
class=
"pure-checkbox"
>
<label
for=
"remember_username"
class=
"pure-checkbox"
>
<input
id=
"remember_username"
type=
"checkbox"
tabindex=
"4"
<input
id=
"remember_username"
type=
"checkbox"
tabindex=
"4"
{{
rememberUsernameChecked
?
'checked'
}}
name=
"remember_username"
value=
"Yes"
>
{{
rememberUsernameChecked
?
'checked'
}}
name=
"remember_username"
value=
"Yes"
>
...
@@ -61,17 +58,18 @@
...
@@ -61,17 +58,18 @@
<label
for=
"password"
>
{{
'Password'
|
trans
}}
</label>
<label
for=
"password"
>
{{
'Password'
|
trans
}}
</label>
<input
id=
"password"
type=
"password"
tabindex=
"2"
name=
"password"
class=
"edge"
autocomplete=
"current-password"
<input
id=
"password"
type=
"password"
tabindex=
"2"
name=
"password"
class=
"edge"
autocomplete=
"current-password"
{%
-
if
forceUsername
or
username
%}
autofocus
{%
endif
%}
>
{%
-
if
forceUsername
or
username
%}
autofocus
{%
endif
%}
>
</div>
{%
if
rememberMeEnabled
-
%}
{%
if
rememberMeEnabled
-
%}
</div>
<div
class=
"pure-controls"
>
<div
class=
"pure-controls pure-form-message"
>
<label
for=
"remember_me"
class=
"pure-checkbox"
>
<label
for=
"remember_me"
class=
"pure-checkbox"
>
<input
id=
"remember_me"
type=
"checkbox"
tabindex=
"5"
<input
id=
"remember_me"
type=
"checkbox"
tabindex=
"5"
{{
rememberMeChecked
?
'checked="checked"'
}}
name=
"remember_me"
value=
"Yes"
>
{{
rememberMeChecked
?
'checked="checked"'
}}
name=
"remember_me"
value=
"Yes"
>
<small>
{{
'Remember me'
|
trans
}}
</small>
<small>
{{
'Remember me'
|
trans
}}
</small>
</label>
</label>
{%
-
endif
%}
</div>
</div>
{%
-
endif
%}
{%
if
organizations
is
defined
-
%}
{%
if
organizations
is
defined
-
%}
<div
class=
"pure-control-group"
>
<div
class=
"pure-control-group"
>
<label
for=
"organization"
>
{{
'Organization'
|
trans
}}
</label>
<label
for=
"organization"
>
{{
'Organization'
|
trans
}}
</label>
...
@@ -91,7 +89,7 @@
...
@@ -91,7 +89,7 @@
</select>
</select>
</div>
</div>
{%
if
rememberOrganizationEnabled
is
defined
-
%}
{%
if
rememberOrganizationEnabled
is
defined
-
%}
<div
class=
"pure-controls
pure-form-message
"
>
<div
class=
"pure-controls"
>
<label
for=
"remember_organization"
class=
"pure-checkbox"
>
<label
for=
"remember_organization"
class=
"pure-checkbox"
>
<input
type=
"checkbox"
id=
"remember_organization"
tabindex=
"5"
name=
"remember_organization"
value=
"Yes"
<input
type=
"checkbox"
id=
"remember_organization"
tabindex=
"5"
name=
"remember_organization"
value=
"Yes"
{{
rememberOrganizationChecked
?
'checked="checked"'
}}
>
{{
rememberOrganizationChecked
?
'checked="checked"'
}}
>
...
@@ -102,15 +100,14 @@
...
@@ -102,15 +100,14 @@
</div>
<!--pure-control-group-->
</div>
<!--pure-control-group-->
{%
-
endif
%}
{%
-
endif
%}
</div>
<!-- form-align-->
<div
class=
"pure-control-group center login-form-submit"
>
<br><br>
<button
class=
"pure-button pure-button-red pure-input-1-2 pure-input-sm-1-1 right"
id=
"submit_button"
type=
"submit"
tabindex=
"6"
data-processing=
"
{%
trans
%}
Processing...
{%
endtrans
%}
"
>
<button
class=
"pure-button pure-button-red pure-input-1-2 pure-input-sm-1-1 right"
id=
"submit_button"
{%
trans
%}
Login
{%
endtrans
%}
type=
"submit"
tabindex=
"6"
data-processing=
"
{%
trans
%}
Processing...
{%
endtrans
%}
"
>
</button>
{%
trans
%}
Login
{%
endtrans
%}
</div>
</button>
</form>
</form>
</div>
<!--center-->
</div>
{%
if
links
is
defined
-
%}
{%
if
links
is
defined
-
%}
<ul>
<ul>
{%
for
link
in
links
-
%}
{%
for
link
in
links
-
%}
...
...
This diff is collapsed.
Click to expand it.
resources/css/default.scss
+
9
−
11
View file @
ab28b2e4
...
@@ -193,8 +193,6 @@ pre, code, kbd, samp, tt {
...
@@ -193,8 +193,6 @@ pre, code, kbd, samp, tt {
.pure-button-group
.pure-button
:first-child
,
.pure-button-group
.pure-button
:first-child
,
.pure-button-group
.pure-button
:last-child
{
.pure-button-group
.pure-button
:last-child
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
;
border-radius
:
0
;
}
}
...
@@ -575,14 +573,12 @@ input[type="file"] {
...
@@ -575,14 +573,12 @@ input[type="file"] {
color
:
black
;
color
:
black
;
}
}
.form-align
{
position
:
relative
;
}
.center-form
{
.center-form
{
display
:
inline-block
;
display
:
flex
;
margin-right
:
auto
;
justify-content
:
center
;
margin-left
:
auto
;
}
.login-form-start
,
.login-form-submit
{
margin-top
:
3ex
;
}
}
.v-center-right
{
.v-center-right
{
...
@@ -596,10 +592,12 @@ input[type="file"] {
...
@@ -596,10 +592,12 @@ input[type="file"] {
.pure-button
,
.pure-button
,
.pure-form
input
.edge
,
.pure-form
input
.edge
,
.pure-form
textarea
.edge
{
.pure-form
textarea
.edge
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
;
border-radius
:
0
;
}
}
.pure-form
input
[
type
=
"checkbox"
]
{
margin-right
:
.8ex
;
vertical-align
:
baseline
;
}
.pure-button
{
.pure-button
{
margin-left
:
1ex
;
margin-left
:
1ex
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment