소스 검색

[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 년 전
부모
커밋
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') }}>