<section class="content-padding">
    {{ block_position('flashmessages') }}
    {% include 'VisualMManagementBundle:AdminList:table.html.twig' with { class : 'table' } %}
    {% include 'VisualMManagementBundle:AdminList:paginator.html.twig' %}
</section>

{% if factories is not empty %}
    <div class="modal fade" id="factorySelectionModal" tabindex="-1">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title">{{ 'tags.select_type.title'|trans({}, 'backend') }}</h4>
                </div>

                <div class="modal-body">
                    <p>{{ 'tags.select_type.info'|trans({}, 'backend') }}</p><br>

                    <div style="height: 300px; overflow: scroll; overflow-x: hidden; padding-left: 10px; padding-right: 10px;">
                        <div class="list-group">
                            {% for ref, factory in factories %}
                                <a href="{{ path('manage_meta_tag_set_add', { factoryService: ref }) }}" class="list-group-item">
                                	{{ factory.title }}
                               	</a>
                            {% endfor %}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endif %}