Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chill-project
Chill-Main
Commits
68a3ed70
Commit
68a3ed70
authored
Nov 19, 2014
by
Julien Fastré
Browse files
Layout the login form fix #345
This is a very simple layout, but it should do the job until we have better :-)
parent
9951593d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Resources/views/Login/login.html.twig
View file @
68a3ed70
{%
extends
"::base.html.twig"
%}
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
/>
{%
block
title
%}
ChillMainBundle:Login:login
{%
endblock
%}
<title>
{{
'Login to %installation_name%'
|
trans
(
{
'%installation_name%'
:
installation.name
}
)
}}
</title>
<style>
label
{
width
:
15em
;
text-align
:
right
;
display
:
inline-block
;
}
input
{
}
form
{
}
button
{
margin-left
:
15em
;
margin-top
:
1em
;
}
</style>
</head>
<body>
<h1>
{{
'Welcome to %installation_name%'
|
trans
(
{
'%installation_name%'
:
installation.name
}
)
}}
</h1>
{%
block
body
%}
<h1>
Welcome to the Login:login page
</h1>
<p>
{{
error
|
trans
}}
</p>
<p>
{{
error
}}
</p>
<form
method=
"POST"
action=
"
{{
path
(
'login_check'
)
}}
"
>
<label
for=
"_username"
>
{{
'Username'
|
trans
}}
</label>
<input
type=
"text"
name=
"_username"
value=
"
{{
last_username
}}
"
/>
<br/>
<label
for=
"_password"
>
{{
'Password'
|
trans
}}
</label>
<input
type=
"password"
name=
"_password"
/>
<input
type=
"hidden"
name=
"_csrf_token"
value=
"
{{
csrf_token
(
'authenticate'
)
}}
"
/>
<br/>
<button
type=
"submit"
>
{{
'Login'
|
trans
}}
</button>
<form
method=
"POST"
action=
"
{{
path
(
'login_check'
)
}}
"
>
<input
type=
"text"
name=
"_username"
value=
"
{{
last_username
}}
"
/>
<input
type=
"password"
name=
"_password"
/>
<input
type=
"hidden"
name=
"_csrf_token"
value=
"
{{
csrf_token
(
'authenticate'
)
}}
"
/>
<button
type=
"submit"
>
{{
'Login'
|
trans
}}
</button>
</form>
</form>
</body>
</html>
{%
endblock
%}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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