]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/form/form_div_layout.html.twig
Add doctrine dbal default charset and collate parameters
[blogbundle] / Resources / views / form / form_div_layout.html.twig
1 {# vendor/symfony/twig-bridge/Resources/views/Form/form_div_layout.html.twig #}
2 {% use "form_div_layout.html.twig" %}
3
4 {%- block form_row -%}
5 {%- set widget_attr = {} -%}
6 {%- if help is not empty -%}
7 {%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%}
8 {%- endif -%}
9 <div{% with {attr: row_attr} %}{{ block('attributes') }}{% endwith %}>
10 {{- form_label(form) -}}
11 <div>
12 {{- form_widget(form, widget_attr) -}}
13 {{- form_errors(form) -}}
14 {{- form_help(form) -}}
15 </div>
16 </div>
17 {%- endblock form_row -%}