Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Comptoir du Libre v3 - Upcoming version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Comptoir
Comptoir du Libre v3 - Upcoming version
Commits
01405d28
Commit
01405d28
authored
8 months ago
by
Fabrice Gangler
Browse files
Options
Downloads
Patches
Plain Diff
feat(user): add login template
parent
74a0a1ed
No related branches found
No related tags found
1 merge request
!29
Feat user login change password forgot password
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webapp/templates/user/login.html.twig
+45
-0
45 additions, 0 deletions
webapp/templates/user/login.html.twig
with
45 additions
and
0 deletions
webapp/templates/user/login.html.twig
0 → 100644
+
45
−
0
View file @
01405d28
{%
extends
'app_base.html.twig'
%}
{%
block
title
%}
{{
'login.head.title'
|
trans
}}
-
{{
appName
}}{%
endblock
%}
{%
block
body
%}
<h2>
{{
'login.page.title'
|
trans
}}
</h2>
{%
if
error
%}
<div
class=
"alert alert-warning"
>
{{
error.messageKey
|
trans
(
error.messageData
,
'security'
)
}}
</div>
{%
endif
%}
<div>
<form
class=
"col-md-6"
action=
"
{{
path
(
'app_account_login'
)
}}
"
method=
"post"
>
<div
class=
"mb-2"
>
<label
for=
"username"
class=
"form-label"
>
{{
'login.form.label.account'
|
trans
}}
</label>
<input
type=
"text"
id=
"username"
name=
"_username"
class=
"form-control"
value=
"
{{
last_username
}}
"
>
</div>
<div
class=
"mb-2"
>
<label
class=
"form-label"
for=
"password"
>
{{
'login.form.label.password'
|
trans
}}
</label>
<input
class=
"form-control"
type=
"password"
id=
"password"
name=
"_password"
>
</div>
{# If you want to control the URL the user is redirected to on success
<input type="hidden" name="_target_path" value="/account"> #}
<input
type=
"hidden"
name=
"_csrf_token"
value=
"
{{
csrf_token
(
'authenticate'
)
}}
"
>
<button
id=
"login-form-button-submit"
type=
"submit"
class=
"btn btn-primary"
>
{{
'login.form.submit'
|
trans
|
raw
}}
</button>
</form>
<hr
class=
"col-3 col-md-2 mb-5"
>
<a
id=
"public_lost-password_link"
href=
"
{{
path
(
'app_account_forgot_password_request'
)
}}
"
>
{{
'login.link.forgot_password'
|
trans
}}
</a>
</div>
{%
endblock
%}
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