{% trans_default_domain 'invoice' %}
{% set table_columns = 8 %}

{% if not table_selectable is defined %}
    {# This variable MUST be explicitly set to false to hide checkboxes         #}
    {# If you set this to false and you have a second listing that display them #}
    {# set explicitly to true in the second listing.                            #}
    {% set table_selectable = true %}
    {% set table_columns = table_columns + 1 %}
{% endif %}
{% if not paginatable is defined %}
    {% set paginatable = true %}
{% endif %}
{% if not sortable is defined %}
    {% set sortable = true %}
{% endif %}



<form name="list_generic" method="post" action="{{ path('admin_contri_index') }}" class="ng-pristine ng-valid">
    <input type="hidden" id="pageactual" name="pageactual" class="form-control" value="{{ pageactual }}">
<div class="box pad">
    <div class="box-header">
        <i class="fa fa-list-ul"></i>
        <h3 class="box-title">Empresas</h3>
        <!-- tools box -->
        &nbsp;&nbsp;
        <div class="btn-group">
            <button type="submit" name="revisar" class="btn btn-default" title="Revisar">
                <span class="glyphicon glyphicon-cloud-upload"></span></button>
        </div>

        <!-- /. tools -->


    </div>
    <div class="box-body">

        <table class="table table-condensed table-striped align-middle" data-type="invoices">
            <thead>
            <tr>

                <th class="cell-size-medium">Razon Social</th>
                <th class="cell-size-medium">RUC</th>
                <th class="cell-size-medium">CONTRI. ACTUAL</th>
                <th class="cell-size-medium">ACTUALIZO</th>
                <th class="cell-size-medium">CONTRI. ANT</th>
                <th class="cell-size-medium">ERROR</th>
            </tr>
            </thead>
            <tbody>
            {% if invoices|length == 0 %}
                <tr>
                    <td colspan="{{ table_columns }}">{% trans %}list.no_results{% endtrans %}</td>
                </tr>
            {% endif %}
            {% for key, result in invoices %}
                {% set entity = result %}
                <tr>
                    <td class="cell-size-medium">{{ entity.razonsocial }}</td>
                    <td class="cell-size-medium">{{ entity.ruc }}</td>
                    <td class="cell-size-medium">{{ entity.rimpelabel }}</td>
                    <td class="cell-size-medium">{{ entity.actualizo }}</td>
                    <td class="cell-size-medium">{{ entity.anterior }}</td>
                    <td class="cell-size-medium">{{ entity.error }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>

    </div>

    <div class="box-footer clearfix">
        <div class="navigation">
            {{ knp_pagination_render(empresas) }}
        </div>
    </div>
</div>
</form>



