{% from "@TelnowedgePhoneProvision/Phonebook/macros/format.twig" import format %} {% set totalPage = (total / model.properties.numberPerPage) | round(0, 'ceil') %} {% if model.model matches '/polycomvvx(?:3|4)/' %} {% if total == 0 %} Pas de resultat {% else %} Page {{ page }}/{{ totalPage }} - Contact : {{total}} {% endif %} {% for item in contacts %} {% endfor %}
  Contact Numéro
{{ loop.index }} {{ format(parameters.format, _context) }} {{ item.number is defined ? item.number : '' }}
{% elseif model.model matches '/polycomvvx/' %} {% if total == 0 %} Pas de resultat {% else %} Page {{ page }}/{{ totalPage }} - Nombre de contact : {{total}} {% endif %}
{% if page > 1 %} {% else %}
 
{% endif %} {% if page < totalPage %} {% endif %}
{% for item in contacts %} {% endfor %}
Contact Numéro Details
{{ format(parameters.format, _context) }} {{ item.number is defined ? item.number : '' }}
{% if page > 1 %} {% else %}
 
{% endif %} {% if page < totalPage %} {% endif %}
{% else %} {% if total == 0 %} Pas de resultat {% else %} Page {{ page }}/{{ totalPage }} - Nombre de contact : {{total}} {% endif %}
{% for key, value in parameters %} {% endfor %} {% for item in contacts %} {% endfor %}
Contact Number Details
{{ format(parameters.format, _context) }} {{ item.number is defined ? item.number : '' }} Details
{% if page > 1 %} {% endif %} {% if page < totalPage %} {% endif %} {% endif %}