Skip to content

Commit

Permalink
Implement n7consulting#290 Change form error style
Browse files Browse the repository at this point in the history
  • Loading branch information
PitouGames committed Jul 31, 2019
1 parent 9c3be0e commit a79c861
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/packages/twig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ twig:
globals:
technical_to: '%env(TECHNICAL_TO)%'
authorizedStorageSize: "%env(AUTHORIZED_STORAGE_SIZE)%"
form_themes: ['form/form_errors.html.twig']
9 changes: 9 additions & 0 deletions templates/form/form_errors.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{%- block form_errors -%}
{%- if errors|length > 0 -%}
<ul style="padding: 0;">
{%- for error in errors -%}
<li class="label label-danger label-form-error">{{ error.message }}</li>
{%- endfor -%}
</ul>
{%- endif -%}
{%- endblock form_errors -%}

0 comments on commit a79c861

Please sign in to comment.