Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changer le style des messages d'erreurs dans les formulaires #290

Open
Stoakes opened this issue Dec 13, 2018 · 0 comments
Open

Changer le style des messages d'erreurs dans les formulaires #290

Stoakes opened this issue Dec 13, 2018 · 0 comments

Comments

@Stoakes
Copy link
Member

Stoakes commented Dec 13, 2018

Suite à un retour d'xprojets, les erreurs sur les champs d'un formulaire peuvent ne pas être assez visible et amener un peu d'uincertitude sur le champ invalide.

L'idée serait d'ajouter du style aux erreurs pour les rendres plus visibles. Un simple texte en rouge pourrait être suffisant.

Exemple

{# app/Resources/views/form/fields.html.twig #}
{% extends 'form_div_layout.html.twig' %}

{%- block form_errors -%}
    {%- if errors|length > 0 -%}
        <ul>
            {%- for error in errors -%}
                <li class="label label-danger label-form-error">{{ error.message }}</li>
            {%- endfor -%}
        </ul>
    {%- endif -%}
{%- endblock form_errors -%}
PitouGames added a commit to ouest-insa/Incipio that referenced this issue Jul 29, 2019
PitouGames added a commit to ouest-insa/Incipio that referenced this issue Jul 29, 2019
PitouGames added a commit to ouest-insa/Incipio that referenced this issue Jul 31, 2019
PitouGames added a commit to ouest-insa/Incipio that referenced this issue Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant