{% if (pagination |length > 0) %} {% for import in pagination %} {% if import.fileName == 'No apply' %} {% else %} {% endif %} {% endfor %}
{{ knp_pagination_sortable(pagination, 'Seller', 'seller') }} {{ knp_pagination_sortable(pagination, 'File name', 'fileName') }} {{ knp_pagination_sortable(pagination, 'Import date', 'importDate') }} {{ knp_pagination_sortable(pagination, 'Products count', 'numProducts') }} Download uploaded file Import status Apply status {{ knp_pagination_sortable(pagination, 'Type', 'type') }} Actions
{{ import.seller }} {{ import.fileName }} {{ import.importDate |date("F j, Y, g:i a") }} {{ import.numProducts }}No applyDownload {% if import.importStatus == 'error' %} Warning{% else %}Success{% endif %} {% if import.appliedStatus == 'error' %} Warning {% elseif import.appliedStatus == 'not_applied' %} {% if import.importStatus == 'error' %} Fix the import {% else %} {% endif %} {% elseif import.appliedStatus == 'success' %} Stocks applied {% else %} Not defined {% endif %} {% if import.type == 'initial' %} Initial {% elseif import.type == 'restock' %} Restock {% elseif import.type == 'increment' %} Increment {% else %} Not defined {% endif %} {% if import.status is same as(false) %}      {% endif %}
{% else %}

No stock import registered for the given seller

{% endif %}