nineskeletor/containers/hydra-dispatcher/templates/form/error_theme.html.twig

13 lines
397 B
Twig
Raw Permalink Normal View History

2023-01-05 20:07:17 +01:00
{% form_theme form _self %}
{% block form_errors %}
{% if errors is defined and errors.count > 0 %}
<div class="bg-red-400 mb-5 p-5 rounded">
<p id="{{form.vars.id}}" >
{% for error in errors %}
{{ error.message | trans({}, 'form', app.request.session.get('_locale')) }}<br />
{% endfor %}
</p>
</div>
{% endif %}
{% endblock form_errors %}