Current File : //opt/alt/php55/usr/share/pear/Symfony/Bridge/Twig/Resources/views/Form/form_table_layout.html.twig |
{% use "form_div_layout.html.twig" %}
{% block form_row %}
{% spaceless %}
<tr>
<td>
{{ form_label(form) }}
</td>
<td>
{{ form_errors(form) }}
{{ form_widget(form) }}
</td>
</tr>
{% endspaceless %}
{% endblock form_row %}
{% block button_row %}
{% spaceless %}
<tr>
<td></td>
<td>
{{ form_widget(form) }}
</td>
</tr>
{% endspaceless %}
{% endblock button_row %}
{% block hidden_row %}
{% spaceless %}
<tr style="display: none">
<td colspan="2">
{{ form_widget(form) }}
</td>
</tr>
{% endspaceless %}
{% endblock hidden_row %}
{% block form_widget_compound %}
{% spaceless %}
<table {{ block('widget_container_attributes') }}>
{% if form.parent is empty and errors|length > 0 %}
<tr>
<td colspan="2">
{{ form_errors(form) }}
</td>
</tr>
{% endif %}
{{ block('form_rows') }}
{{ form_rest(form) }}
</table>
{% endspaceless %}
{% endblock form_widget_compound %}