Skip to content

Commit

Permalink
Merge class attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelVella committed Feb 12, 2013
1 parent 0ce1c71 commit 0989d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/views/Form/form_admin_fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ file that was distributed with this source code.
{% spaceless %}
{% if prototype is defined %}
{% set child = prototype %}
{% set attr = attr|merge({'data-prototype': block('collection_widget_row') }) %}
{% set attr = attr|merge({'data-prototype': block('collection_widget_row'), 'class': attr.class|default('') ~ ' controls' }) %}
{% endif %}
<div class="controls" {{ block('widget_container_attributes') }}>
<div {{ block('widget_container_attributes') }}>
{{ form_errors(form) }}
{% for child in form %}
{{ block('collection_widget_row') }}
Expand Down

0 comments on commit 0989d9b

Please sign in to comment.