{% extends 'base.html' %} {% load crispy_forms_tags %} {% load static %} {% block modals%} {% endblock %} {% block script %} {% endblock %} {% block main %} {% regroup items by PIC_Site.CLIN_Anag as item_by_site %} {% for site in item_by_site %} {% regroup site.list by PIC_Service as item_by_service %} {% for service in item_by_service %} {% for item in service.list %} {% if forloop.first %}{% endif %} {% if forloop.last %} {% endif %} {% endfor %} {% endfor %}
{{ site.grouper }} - {{ service.grouper }} {% if item.PIC_L_Chassi_Type == "PC"%} {% elif item.PIC_L_Chassi_Type == "CL" %} {% elif item.PIC_L_Chassi_Type == "PORTABLE" %} {% elif item.PIC_L_Chassi_Type == "PANEL-PC" %} {% endif %} {{item.get_PIC_L_Chassi_Type_display}} {% if item.PIC_Deg == 1%}/ DEG{% endif %} {% for accessoir in item.accessoir %}{% if accessoir.Accessory_N_slugify == "double-ecrans"%}{% else %}{% endif %} {% endfor %} {{ item.PIC_Nom_netbios }} {{ item.PIC_Utilisateur }} {% if item.PIC_OS != none %}{{ item.PIC_OS }}{% else %} {% endif %}
  {% regroup items_imp by PIC_Site.CLIN_Anag as imp_by_site %} {% for imp_site in imp_by_site %} {% regroup imp_site.list by PIC_Service as imp_by_service %} {% for imp_service in imp_by_service %} {% if imp_site.grouper == site.grouper and imp_service.grouper == service.grouper %} Nb d'imprimantes : {{imp_service.list|length}} {% endif %} {% endfor %} {% endfor %}   Nb de postes informatique : {{ forloop.counter }}  
 
{% endfor %} {% endblock %} {% block right_panel %}
Retour
{% endblock %}