when clicking from a template to this button :
<form action="{{ path('fos_user_registration_register') }}" method="post">
<button class="btn btn-small btn-success" type="submit">S'inscrire</button>
</form>
I then access my UserBundle/Resources/view/Registration/register/html.twig ( which then overrides the FOSUSerBundle default form ) :
{% extends "FOSUserBundle::layout.html.twig" %}
{% block fos_user_content %}
<form action="{{ path('fos_user_registration_register') }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register">
{{ form_rest(form) }}
<div>
<input type="submit" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" />
</div>
</form>
{% endblock fos_user_content %}
For some reasons, all validation messages appear (such as Please enter a username) although I did not event submit the form !?
Any explanations for that?
How can I customized the FOSUser template and redirect error_message, not making it appear or changing messages or display?
at the end i overrided the registration_content view as such: