Skip to content

Commit

Permalink
[TwigBundle][Form] Simplify templates
Browse files Browse the repository at this point in the history
The Repeated and Collection types extend the Form type so there is no need to explicitely render the parent section.
  • Loading branch information
vicb committed Jun 6, 2011
1 parent 181fb56 commit 6711a18
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Expand Up @@ -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') }}
Expand Down
Expand Up @@ -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') }}>
Expand Down

0 comments on commit 6711a18

Please sign in to comment.