Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mathieu
potage
Commits
9feae2fb
Commit
9feae2fb
authored
Jun 17, 2018
by
Mat
Browse files
surcharges des formulaires de FOSuser
parent
e43e32de
Changes
10
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Resources/views/ChangePassword/change_password.html.twig
0 → 100644
View file @
9feae2fb
{%
extends
"@FOSUser/layout.html.twig"
%}
{%
block
title
%}
Modifier mon mot de passe
{%
endblock
%}
{%
block
fos_user_content
%}
{%
include
"@FOSUser/ChangePassword/change_password_content.html.twig"
%}
<ul>
<li>
<a
href=
"
{{
path
(
'fos_user_profile_show'
)
}}
"
>
Revenir vers mon profil
</a>
</li>
</ul>
{%
endblock
fos_user_content
%}
src/PotageBundle/Resources/views/Profile/edit.html.twig
0 → 100755
View file @
9feae2fb
{%
extends
"@FOSUser/layout.html.twig"
%}
{%
block
title
%}
Modifier mon profil
{%
endblock
%}
{%
block
fos_user_content
%}
{%
include
"@FOSUser/Profile/edit_content.html.twig"
%}
<ul>
<li>
<a
href=
"
{{
path
(
'fos_user_profile_show'
)
}}
"
>
Revenir vers mon profil
</a>
</li>
</ul>
{%
endblock
fos_user_content
%}
src/PotageBundle/Resources/views/Profile/edit_content.html.twig
0 → 100755
View file @
9feae2fb
{%
trans_default_domain
'FOSUserBundle'
%}
{{
form_start
(
form
,
{
'action'
:
path
(
'fos_user_profile_edit'
),
'attr'
:
{
'class'
:
'fos_user_profile_edit'
}
}
)
}}
{{
form_widget
(
form
)
}}
<div>
<input
type=
"submit"
value=
"
{{
'profile.edit.submit'
|
trans
}}
"
/>
</div>
{{
form_end
(
form
)
}}
src/PotageBundle/Resources/views/Profile/show.html.twig
0 → 100755
View file @
9feae2fb
{%
extends
"@FOSUser/layout.html.twig"
%}
{%
block
title
%}
Mon profil
{%
endblock
%}
{%
block
fos_user_content
%}
<ul>
<li>
<a
href=
"
{{
path
(
'fos_user_profile_edit'
)
}}
"
>
Modifier mon profil
</a>
</li>
<li>
<a
href=
"
{{
path
(
'fos_user_change_password'
)
}}
"
>
Modifier mon mot de passe
</a>
</li>
</ul>
{%
include
"@FOSUser/Profile/show_content.html.twig"
%}
{%
endblock
fos_user_content
%}
src/PotageBundle/Resources/views/Profile/show_content.html.twig
0 → 100755
View file @
9feae2fb
{%
trans_default_domain
'FOSUserBundle'
%}
<div
class=
"fos_user_user_show"
>
<dt>
{{
'profile.show.username'
|
trans
}}
:
</dt>
<dd>
{{
user.username
}}
</dd>
<dt>
{{
'profile.show.email'
|
trans
}}
:
</dt>
<dd>
{{
user.email
}}
</dd>
</div>
src/PotageBundle/Resources/views/Registration/register.html.twig
0 → 100755
View file @
9feae2fb
{%
extends
"@FOSUser/layout.html.twig"
%}
{%
block
title
%}
S'inscrire
{%
endblock
%}
{%
block
fos_user_content
%}
{%
include
"@FOSUser/Registration/register_content.html.twig"
%}
<ul>
<li>
<a
href=
"
{{
path
(
'fos_user_security_login'
)
}}
"
>
Déjà inscrit ? Se connecter
</a>
</li>
</ul>
{%
endblock
fos_user_content
%}
{#
TODO: Etendre form register pour saisir nom, prénom, etc. Voir form Profile.
#}
\ No newline at end of file
src/PotageBundle/Resources/views/Resetting/request.html.twig
0 → 100755
View file @
9feae2fb
{%
extends
"@FOSUser/layout.html.twig"
%}
{%
block
title
%}
Réinitialiser mon mot de passe
{%
endblock
%}
{%
block
fos_user_content
%}
{%
include
"@FOSUser/Resetting/request_content.html.twig"
%}
<ul>
<li>
<a
href=
"
{{
path
(
'fos_user_security_login'
)
}}
"
>
Revenir vers le login
</a>
</li>
</ul>
{%
endblock
fos_user_content
%}
src/PotageBundle/Resources/views/Security/login.html.twig
0 → 100755
View file @
9feae2fb
{%
extends
"@FOSUser/layout.html.twig"
%}
{%
block
title
%}
Se connecter
{%
endblock
%}
{%
block
fos_user_content
%}
{{
include
(
'@FOSUser/Security/login_content.html.twig'
)
}}
<ul>
<li>
<a
href=
"
{{
path
(
'fos_user_resetting_request'
)
}}
"
>
Mot de passe oublié ?
</a>
</li>
<li>
<a
href=
"
{{
path
(
'fos_user_registration_register'
)
}}
"
>
S'inscrire
</a>
</li>
</ul>
{%
endblock
fos_user_content
%}
src/PotageBundle/Resources/views/Security/login_content.html.twig
0 → 100755
View file @
9feae2fb
{%
trans_default_domain
'FOSUserBundle'
%}
{%
if
error
%}
<div>
{{
error.messageKey
|
trans
(
error.messageData
,
'security'
)
}}
</div>
{%
endif
%}
<form
action=
"
{{
path
(
"fos_user_security_check"
)
}}
"
method=
"post"
>
{%
if
csrf_token
%}
<input
type=
"hidden"
name=
"_csrf_token"
value=
"
{{
csrf_token
}}
"
/>
{%
endif
%}
<label
for=
"username"
>
{{
'security.login.username'
|
trans
}}
</label>
<input
type=
"text"
id=
"username"
name=
"_username"
value=
"
{{
last_username
}}
"
required=
"required"
autocomplete=
"username"
/>
<br>
<label
for=
"password"
>
{{
'security.login.password'
|
trans
}}
</label>
<input
type=
"password"
id=
"password"
name=
"_password"
required=
"required"
autocomplete=
"current-password"
/>
<br>
<input
type=
"checkbox"
id=
"remember_me"
name=
"_remember_me"
value=
"on"
/>
<label
for=
"remember_me"
>
{{
'security.login.remember_me'
|
trans
}}
</label>
<br>
<input
type=
"submit"
id=
"_submit"
name=
"_submit"
value=
"
{{
'security.login.submit'
|
trans
}}
"
/>
</form>
web/css/style.css
100755 → 100644
View file @
9feae2fb
...
...
@@ -132,6 +132,7 @@ aside.col-3 dd {
}
.lettre-header
dd
{
margin-top
:
-1.5em
;
/* nécessaire template Lettre */
padding-left
:
5em
;
}
span
#rebours
{
...
...
Write
Preview
Supports
Markdown
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