{#
    Partial form loaded trough AJAX in MetaTagCollection:form
    is used to add a new set

    @author Elze Kool <info@visualmedia.nl>
#}
<div data-form-name="{{ form.metaTags.vars.full_name }}">
    {% import 'VisualMTagManagerBundle:ManageMetaTag:form.html.twig' as _meta_tag_form %}

    <div class="meta-tag-set max-width" data-meta-tag-set-id="{{ meta_tag_set.id }}">

        <fieldset>

            <legend>
                <button data-confirm="{{ 'meta_tag_collection.meta_tag_set_verwijder.confirm'|trans({}, 'forms') }}" type="button" class="btn btn-link pull-right js-meta-tag-set-del"><i class="icon-trash"></i></button>
                {{ meta_tag_set.naam }}
            </legend>

            {% for meta_tag_form in form.metaTags %}
                {% if meta_tag_form.vars.value.metaTagPreset.metaTagSet.id == meta_tag_set.id %}
                    {{ _meta_tag_form.meta_tag_widget(meta_tag_form) }}
                    {{ form_errors(meta_tag_form) }}
                {% endif %}
            {% endfor %}

        </fieldset>

    </div>
        
</div>