parc_info_stat_user_without_snow.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% extends 'base.html' %}
  2. {% load crispy_forms_tags %}
  3. {% load static %}
  4. {% block modals%}
  5. {% endblock %}
  6. {% block script %}
  7. {% endblock %}
  8. {% block main %}
  9. {% regroup item by PIC_Site.CLIN_Anag as item_by_site %}
  10. {% for site in item_by_site %}
  11. <h1>{{ site.grouper }}</h1>
  12. {% regroup site.list by PIC_Service as item_by_service %}
  13. <table class="table table-sm mb-2">
  14. {% for service in item_by_service %}
  15. <thead><tr><th scope="col" colspan="4" class="m">{{ service.grouper }}</th><th scope="col">{{ service.list|length }}</th></tr></thead>
  16. <tbody>
  17. {% for item in service.list %}
  18. <tr>
  19. <td>&nbsp;</td>
  20. <td>
  21. {% if item.PIC_L_Chassi_Type == "PC"%}
  22. <i class="fas fa-desktop"></i>
  23. {% elif item.PIC_L_Chassi_Type == "CL" %}
  24. <i class="fas fa-network-wired"></i>
  25. {% elif item.PIC_L_Chassi_Type == "PORTABLE" %}
  26. <i class="fas fa-laptop"></i>
  27. {% elif item.PIC_L_Chassi_Type == "PANEL-PC" %}
  28. <i class="fas fa-tablet-alt"></i>
  29. {% elif item.PIC_L_Chassi_Type == "IMP" %}
  30. <i class="fas fa-print"></i>
  31. {% endif %}
  32. {{item.get_PIC_L_Chassi_Type_display}} {% if item.PIC_Deg == 1%}/ DEG{% endif %}
  33. </td>
  34. <td>{{ item.PIC_Nom_netbios }}</td>
  35. <td>{{ item.PIC_Utilisateur }}</td>
  36. <td>{% if item.PIC_OS != none %}{{ item.PIC_OS }}{% else %}&nbsp;{% endif %}</td>
  37. </tr>
  38. {% endfor %}
  39. </tbody>
  40. {% endfor %}
  41. </table>
  42. {% endfor %}
  43. {% endblock %}
  44. {% block right_panel %}
  45. <div class="card-body">
  46. <div class="d-grid gap-2"><a class="btn btn-primary" href="/parc" role="button"><i class="fas fa-undo-alt"></i> Retour</a></div>
  47. </div>
  48. {% endblock %}