Commit 9feae2fb authored by Mat's avatar Mat

surcharges des formulaires de FOSuser

parent e43e32de
{% 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 %}
{% 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 %}
{% 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) }}
{% 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 %}
{% 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>
{% 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
{% 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 %}
{% 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 %}
{% 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>
......@@ -132,6 +132,7 @@ aside.col-3 dd {
}
.lettre-header dd {
margin-top: -1.5em; /* nécessaire template Lettre */
padding-left: 5em;
}
span#rebours {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment