{% macro list(factories) %}

{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
{% import 'SyliusWebBundle:Backend/Macros:alerts.html.twig' as alerts %}

{% if factories|length > 0 %}
    <table class="table">
        <thead>
            <tr>
                <th>{{ sylius_resource_sort('name', 'sylius.product_attribute.name'|trans) }}</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
        {% for factory in factories %}
            <tr id="{{ factory.id }}">
                <td>{{ factory.name }}</td>
                <td>
                    <div class="pull-right">
                    {{ buttons.show(path('furniture_backend_factory_show', {id: factory.id})) }}
                    {{ buttons.edit(path('furniture_backend_factory_update', {'id': factory.id})) }}
                    {{ buttons.delete(path('furniture_backend_factory_delete', {'id': factory.id})) }}
                   </div>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% else %}
{{ alerts.info('sylius.product_attribute.no_results'|trans) }}
{% endif %}

{% endmacro %}

{% macro list(factories) %}

{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %}
{% import 'SyliusWebBundle:Backend/Macros:alerts.html.twig' as alerts %}

{% if factories|length > 0 %}
    <table class="table">
        <thead>
            <tr>
                <th>{{ sylius_resource_sort('name', 'sylius.product_attribute.name'|trans) }}</th>
                <th>Enabled</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
        {% for factory in factories %}
            <tr id="{{ factory.id }}">
                <td>{{ factory.name }}</td>
                <td class="text-center">
                    <i class="glyphicon glyphicon-{{ factory.enabled ? 'ok' : 'remove' }}"></i>
                </td>
                <td>
                    <div class="pull-right">
                    {{ buttons.show(path('furniture_backend_factory_show', {id: factory.id})) }}
                    {{ buttons.edit(path('furniture_backend_factory_update', {'id': factory.id})) }}
                    {{ buttons.delete(path('furniture_backend_factory_delete', {'id': factory.id})) }}
                   </div>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% else %}
{{ alerts.info('sylius.product_attribute.no_results'|trans) }}
{% endif %}

{% endmacro %}

Add enabled field to factory
Add enabled field to factory
