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
5560a193
Commit
5560a193
authored
2 years ago
by
Thijs Kinkhorst
Browse files
Options
Downloads
Patches
Plain Diff
De-uglify login form when checkbox shown
parent
a3b72c72
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 @
5560a193
...
...
@@ -36,11 +36,8 @@
<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>
<br>
<div
class=
"center"
>
<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=
"center-form login-form-start"
>
<form
id=
"f"
class=
"pure-form pure-form-aligned"
action=
"
{{
moduleURL
(
'core/loginuserpass'
,
{
'AuthState'
:
AuthState
}
)
}}
"
method=
"post"
name=
"f"
>
<div
class=
"pure-control-group"
>
<label
for=
"username"
>
{{
'Username'
|
trans
}}
</label>
<input
id=
"username"
{{
forceUsername
?
'disabled'
}}
placeholder=
"
{{
username
}}
"
type=
"text"
name=
"username"
class=
"edge"
...
...
@@ -48,7 +45,7 @@
{%
-
if
not
forceUsername
and
not
username
%}
autofocus
{%
endif
%}
>
{%
if
rememberUsernameEnabled
and
not
forceUsername
-
%}
</div>
<div
class=
"pure-controls
pure-form-message
"
>
<div
class=
"pure-controls"
>
<label
for=
"remember_username"
class=
"pure-checkbox"
>
<input
id=
"remember_username"
type=
"checkbox"
tabindex=
"4"
{{
rememberUsernameChecked
?
'checked'
}}
name=
"remember_username"
value=
"Yes"
>
...
...
@@ -61,17 +58,18 @@
<label
for=
"password"
>
{{
'Password'
|
trans
}}
</label>
<input
id=
"password"
type=
"password"
tabindex=
"2"
name=
"password"
class=
"edge"
autocomplete=
"current-password"
{%
-
if
forceUsername
or
username
%}
autofocus
{%
endif
%}
>
</div>
{%
if
rememberMeEnabled
-
%}
</div>
<div
class=
"pure-controls pure-form-message"
>
<div
class=
"pure-controls"
>
<label
for=
"remember_me"
class=
"pure-checkbox"
>
<input
id=
"remember_me"
type=
"checkbox"
tabindex=
"5"
{{
rememberMeChecked
?
'checked="checked"'
}}
name=
"remember_me"
value=
"Yes"
>
<small>
{{
'Remember me'
|
trans
}}
</small>
</label>
{%
-
endif
%}
</div>
{%
-
endif
%}
{%
if
organizations
is
defined
-
%}
<div
class=
"pure-control-group"
>
<label
for=
"organization"
>
{{
'Organization'
|
trans
}}
</label>
...
...
@@ -91,7 +89,7 @@
</select>
</div>
{%
if
rememberOrganizationEnabled
is
defined
-
%}
<div
class=
"pure-controls
pure-form-message
"
>
<div
class=
"pure-controls"
>
<label
for=
"remember_organization"
class=
"pure-checkbox"
>
<input
type=
"checkbox"
id=
"remember_organization"
tabindex=
"5"
name=
"remember_organization"
value=
"Yes"
{{
rememberOrganizationChecked
?
'checked="checked"'
}}
>
...
...
@@ -102,15 +100,14 @@
</div>
<!--pure-control-group-->
{%
-
endif
%}
</div>
<!-- form-align-->
<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
%}
"
>
{%
trans
%}
Login
{%
endtrans
%}
</button>
<div
class=
"pure-control-group center login-form-submit"
>
<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
%}
"
>
{%
trans
%}
Login
{%
endtrans
%}
</button>
</div>
</form>
</div>
<!--center-->
</div>
{%
if
links
is
defined
-
%}
<ul>
{%
for
link
in
links
-
%}
...
...
This diff is collapsed.
Click to expand it.
resources/css/default.scss
+
9
−
11
View file @
5560a193
...
...
@@ -193,8 +193,6 @@ pre, code, kbd, samp, tt {
.pure-button-group
.pure-button
:first-child
,
.pure-button-group
.pure-button
:last-child
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
;
}
...
...
@@ -575,14 +573,12 @@ input[type="file"] {
color
:
black
;
}
.form-align
{
position
:
relative
;
}
.center-form
{
display
:
inline-block
;
margin-right
:
auto
;
margin-left
:
auto
;
display
:
flex
;
justify-content
:
center
;
}
.login-form-start
,
.login-form-submit
{
margin-top
:
3ex
;
}
.v-center-right
{
...
...
@@ -596,10 +592,12 @@ input[type="file"] {
.pure-button
,
.pure-form
input
.edge
,
.pure-form
textarea
.edge
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
;
}
.pure-form
input
[
type
=
"checkbox"
]
{
margin-right
:
.8ex
;
vertical-align
:
baseline
;
}
.pure-button
{
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