Browse Source

[TwigBundle][Form] Simplify templates

The Repeated and Collection types extend the Form type so there is no need to explicitely render the parent section.
Victor Berchet 14 năm trước cách đây
mục cha
commit
6711a184fd

+ 0 - 6
src/Symfony/Bundle/TwigBundle/Resources/views/Form/div_layout.html.twig

@@ -242,12 +242,6 @@
 {% endspaceless %}
 {% endblock file_widget %}
 
-{% block collection_widget %}
-{% spaceless %}
-    {{ block('form_widget') }}
-{% endspaceless %}
-{% endblock collection_widget %}
-
 {% block repeated_row %}
 {% spaceless %}
     {{ block('field_rows') }}

+ 0 - 6
src/Symfony/Bundle/TwigBundle/Resources/views/Form/table_layout.html.twig

@@ -36,12 +36,6 @@
 {% endspaceless %}
 {% endblock hidden_row %}
 
-{% block repeated_errors %}
-{% spaceless %}
-    {{ block('form_errors') }}
-{% endspaceless %}
-{% endblock repeated_errors %}
-
 {% block form_widget %}
 {% spaceless %}
     <table {{ block('container_attributes') }}>