Skip to content

Commit

Permalink
Highlight error fields in content data
Browse files Browse the repository at this point in the history
  • Loading branch information
sophie-mulard committed May 5, 2023
1 parent dfe2ccb commit 7567c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Layout/preview/column.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% for key, element in elements %}
{% set childForm = form.children.elements.children[key]|default(null) %}
{% if childForm is not null %}
<div class="acb-field field-row acb-row acb-sortable" data-name="{{ childForm.vars.full_name }}">
<div class="acb-field field-row acb-row acb-sortable" data-name="{{ childForm.vars.full_name }}" {% if childForm.vars.valid == false %}style="border: 1px solid red;" {% endif %}>
{{ common.acb_element_toolbar(childForm) }}
{{ acb_element_preview(element, childForm) }}
</div>
Expand Down

0 comments on commit 7567c4d

Please sign in to comment.