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
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
11e83a42
Commit
11e83a42
authored
7 years ago
by
Olimpia Magliulo
Browse files
Options
Downloads
Patches
Plain Diff
Ignore autofocus in loginuserpass as suggested in documentation
+ fix typos and indentation
parent
8eef9f35
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/core/templates/loginuserpass.twig
+8
-14
8 additions, 14 deletions
modules/core/templates/loginuserpass.twig
templates/_header.twig
+4
-4
4 additions, 4 deletions
templates/_header.twig
with
12 additions
and
18 deletions
modules/core/templates/loginuserpass.twig
+
8
−
14
View file @
11e83a42
{%
set
pagetitle
=
'Enter your username and password'
|
trans
%}
{%
set
pagetitle
=
'Enter your username and password'
|
trans
%}
{%
if
username
|
length
>
0
%}
{%
set
autofocus
=
'password'
%}
{%
else
%}
{%
set
autofocus
=
'username'
%}
{%
endif
%}
{%
extends
"@core/base.twig"
%}
{%
extends
"@core/base.twig"
%}
{%
block
content
%}
{%
block
content
%}
{%
if
errorcode
-
%}
{%
if
errorcode
%}
<div
class=
"pure-g"
>
<div
class=
"pure-g"
>
<div
class=
"pure-u-1"
>
<div
class=
"pure-u-1"
>
<div
class=
"message-box error"
>
<div
class=
"message-box error"
>
...
@@ -27,7 +21,7 @@
...
@@ -27,7 +21,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
{%
endif
%}
{%
-
endif
%}
<h1>
{{
'Enter your username and password'
|
trans
}}
</h1>
<h1>
{{
'Enter your username and password'
|
trans
}}
</h1>
...
@@ -44,8 +38,8 @@
...
@@ -44,8 +38,8 @@
<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="disabled"'
}}
type=
"text"
name=
"username"
class=
"edge"
{%
spaceless
%}
<input
id=
"username"
{{
forceUsername
?
'disabled="disabled"'
}}
type=
"text"
name=
"username"
class=
"edge"
{%
-
if
not
forceUsername
%}
tabindex=
"1"
value=
"
{{
username
}}
"
{%
endif
%}{%
endspaceless
%}
>
{%
-
if
not
forceUsername
%}
tabindex=
"1"
value=
"
{{
username
}}
"
{%
endif
%}
>
{%
if
rememberUsernameEnabled
and
not
forceUsername
-
%}
{%
if
rememberUsernameEnabled
and
not
forceUsername
-
%}
</div>
</div>
<div
class=
"pure-controls pure-form-message"
>
<div
class=
"pure-controls pure-form-message"
>
...
@@ -54,7 +48,7 @@
...
@@ -54,7 +48,7 @@
{{
rememberUsernameChecked
?
'checked="checked"'
}}
name=
"remember_username"
value=
"Yes"
/>
{{
rememberUsernameChecked
?
'checked="checked"'
}}
name=
"remember_username"
value=
"Yes"
/>
<small>
{{
'Remember my username'
|
trans
}}
</small>
<small>
{{
'Remember my username'
|
trans
}}
</small>
</label>
</label>
{%
endif
-
%}
{%
-
endif
%}
</div>
</div>
<div
class=
"pure-control-group"
>
<div
class=
"pure-control-group"
>
...
@@ -69,7 +63,7 @@
...
@@ -69,7 +63,7 @@
{{
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
-
%}
{%
-
endif
%}
</div>
</div>
{%
if
organizations
is
defined
-
%}
{%
if
organizations
is
defined
-
%}
<div
class=
"pure-control-group"
>
<div
class=
"pure-control-group"
>
...
@@ -102,10 +96,10 @@
...
@@ -102,10 +96,10 @@
<input
type=
"hidden"
name=
"
{{
name
}}
"
value=
"
{{
value
}}
"
/>
<input
type=
"hidden"
name=
"
{{
name
}}
"
value=
"
{{
value
}}
"
/>
{%
-
endfor
%}
{%
-
endfor
%}
</form>
</form>
</div>
<!--center
inline
-->
</div>
<!--center-->
{%
if
links
-
%}
{%
if
links
-
%}
<ul>
<ul>
{%
for
link
in
links
%}
{%
for
link
in
links
-
%}
<li><a
href=
"
{{
link.href
}}
"
>
{{
link
[
'text'
]
|
trans
}}
</a></li>
<li><a
href=
"
{{
link.href
}}
"
>
{{
link
[
'text'
]
|
trans
}}
</a></li>
{%
endfor
%}
{%
endfor
%}
</ul>
</ul>
...
...
This diff is collapsed.
Click to expand it.
templates/_header.twig
+
4
−
4
View file @
11e83a42
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
{%
else
-
%}
{%
else
-
%}
{%
if
lang.url
-
%}
{%
if
lang.url
-
%}
<li
class=
"pure-menu-item"
><a
href=
"
{{
lang.url
}}{%
-
spaceless
%}
<li
class=
"pure-menu-item"
><a
href=
"
{{
lang.url
}}{%
-
spaceless
%}
{%
if
queryParams
%}
&
{%
endif
%}
{%
if
queryParams
-
%}
&
{%
endif
-
%}
{%
for
name
,
value
in
queryParams
%}
{%
for
name
,
value
in
queryParams
-
%}
{%
-
if
not
loop.first
%}
&
{%
endif
-
%}
{%
-
if
not
loop.first
%}
&
{%
endif
-
%}
{%
if
value
%}{{
name
}}
=
{{
value
}}{%
else
%}{{
name
}}{%
endif
%}
{%
-
if
value
%}{{
name
}}
=
{{
value
}}{%
else
%}{{
name
}}{%
-
endif
%}
{%
endfor
%}
"
{%
endspaceless
%}
class=
"pure-menu-link"
>
{{
lang.name
}}
</a></li>
{%
-
endfor
%}
"
{%
endspaceless
%}
class=
"pure-menu-link"
>
{{
lang.name
}}
</a></li>
{%
endif
-
%}
{%
endif
-
%}
{%
endif
-
%}
{%
endif
-
%}
{%
endfor
-
%}
{%
endfor
-
%}
...
...
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