templates/Admin/ProductUpload/list.html.twig line 1

Open in your IDE?
  1. {% if items|length>0 %}
  2.     {% include 'Admin/Includes/pagination.html.twig' with { 'page':page, 'count':count, 'limit':limit } %}
  3.     <table>
  4.         <tr>
  5.             <th>#</th>
  6.             <th>Désignation</th>
  7.             {# <th>Début</th>
  8.             <th>Fin</th> #}
  9.             <th>Traitement</th>
  10.             {% if is_admin==2 %}<th style="width:120px">Etat de création</th>{% endif %}
  11.             <th style="width:98px">Date</th>
  12.             {% if is_admin==2 %}
  13.                 <th style="width:120px">Etat</th>
  14.             {% endif %}
  15.             <th style="width:{% if is_admin==2 %}110{% else %}32{% endif %}px">&nbsp;</th>
  16.         </tr>
  17.         {% for item in items %}
  18.             <tr>
  19.                 <td>{{ item.id }}</td>
  20.                 {#<td><a href="{{ path('admin_prestashop_updater_check', {id: item.id}) }}">{{ item.name }}</a></td>#}
  21.                 <td>{{ item.name }}</td>
  22.                 {# <td class="alignCenter">{{ item.start_date|date('d/m/Y') }}<br />{{ item.start_date|date('H:i:s') }}</td>
  23.                 <td class="alignCenter">{{ item.end_date|date('d/m/Y') }}<br />{{ item.end_date|date('H:i:s') }}</td> #}
  24.                 <td class="alignCenter">
  25.                     {% for v in item.companies %}
  26.                         {{ v.name }} :
  27.                         {% if v.msg==1 %}
  28.                             <a href="{{ path('admin_prestashop_updater_check_company', {id: item.id, company_id: v.id}) }}">Traitement en cours</a>
  29.                         {% elseif v.msg==2 %}
  30.                             <a href="{{ path('admin_prestashop_updater_check_company', {id: item.id, company_id: v.id}) }}">Traité</a>
  31.                         {% else %}N/A{% endif %}<br />
  32.                     {% endfor %}
  33.                 </td>
  34.                 {% if is_admin==2 %}
  35.                     <td align="center">
  36.                         {% if not item.start_generate_date %}
  37.                             Initial
  38.                         {% else %}
  39.                             {% if not item.end_generate_date %}
  40.                                 Création du fichier de contrôle en cours
  41.                             {% endif %}
  42.                             {% if item.end_prestashop_date %}
  43.                                 {% if not item.start_ps_date %}
  44.                                     Envoyer sur PS
  45.                                 {% else %}
  46.                                     {% if not item.end_ps_date %}
  47.                                         Envoi sur PS<br />
  48.                                         {{ item.start_ps_date|date('d/m/Y') }}<br />
  49.                                         {{ item.start_ps_date|date('H:i:s') }}
  50.                                         {% set difference = date("now").diff(date(item.start_ps_date)) %}
  51.                                         ({{ difference|date("%H:%I:%S") }})
  52.                                     {% else %}
  53.                                         PS terminé<br />
  54.                                         {{ item.start_ps_date|date('d/m/Y H:i:s') }}<br />
  55.                                         {{ item.end_ps_date|date('d/m/Y H:i:s') }}
  56.                                         {% set difference = date(item.end_ps_date).diff(date(item.start_ps_date)) %}
  57.                                         ({{ difference|date("%H:%I:%S") }})
  58.                                     {% endif %}
  59.                                 {% endif %}
  60.                             {% endif %}
  61.                         {% endif %}
  62.                     </td>
  63.                 {% endif %}
  64.                 <td class="alignCenter">{{ item.creation_date|date('d/m/Y') }}<br />{{ item.creation_date|date('H:i:s') }}</td>
  65.                 {% if is_admin==2 %}
  66.                     <td>
  67.                         <div class="custom-select">
  68.                             <select class="status">
  69.                                 <option value="1" data="{{ path('admin_prestashop_updater_activate', {id: item.id, status:1}) }}"{% if item.status==1 %} selected{% endif %}>Nouveau</option>
  70.                                 <option value="2" data="{{ path('admin_prestashop_updater_activate', {id: item.id, status:2}) }}"{% if item.status==2 %} selected{% endif %}>Actif</option>
  71.                                 <option value="2" data="{{ path('admin_prestashop_updater_activate', {id: item.id, status:3}) }}"{% if item.status==3 %} selected{% endif %}>Terminé</option>
  72.                                 <option value="5" data="{{ path('admin_prestashop_updater_activate', {id: item.id, status:5}) }}"{% if item.status==5 %} selected{% endif %}>Supprimé</option>
  73.                             </select>
  74.                         </div>
  75.                     </td>
  76.                 {% endif %}
  77.                 <td>
  78.                     {% if item.showCSV %}
  79.                         <div class="upload-csv" data="{{ path('admin_prestashop_updater_upload_csv', {id: item.id}) }}"></div>
  80.                     {% endif %}
  81.                     {% if is_admin==2 %}
  82.                         <a href="{{ path('admin_prestashop_updater_control_file', {id: item.id}) }}" class="control-file"></a>
  83.                         {% if item.end_prestashop_date %}
  84.                             {% if not item.start_ps_date or (item.start_ps_date and item.end_ps_date) %}
  85.                                 <div class="send-prestashop" data="https://mylibrairie.ma/ps_up.php?id={{ item.id }}"></div>
  86.                             {% endif %}
  87.                         {% endif %}<br />
  88.                         <div class="more" data="{{ path('admin_prestashop_updater_one', {id: item.id}) }}"></div>
  89.                         <div class="edit" data="{{ path('admin_prestashop_updater_edit', {id: item.id}) }}"></div>
  90.                         <div class="delete" data="{{ path('admin_prestashop_updater_activate', {id: item.id, status:5}) }}"></div>
  91.                     {% endif %}
  92.                 </td>
  93.             </tr>
  94.         {% endfor %}
  95.     </table>
  96.     {% include 'Admin/Includes/pagination.html.twig' with { 'page':page, 'count':count, 'limit':limit } %}
  97. {% else %}
  98. <div class="error">Aucun projet pour cette recherche</div>
  99. {% endif %}