parc_info_stat_user_by_service.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 items by PIC_Site.CLIN_Anag as item_by_site %}
  10. {% for site in item_by_site %}
  11. {% regroup site.list by PIC_Service as item_by_service %}
  12. <table class="table table-sm mb-2">
  13. {% for service in item_by_service %}
  14. {% for item in service.list %}
  15. <tr {% if item.PIC_L_Statut == "ADEPROD" %}class="table-danger"{%elif item.PIC_L_Statut == "PREPROD"%}class="table-success"{%elif item.PIC_L_Statut == "HS"%}class="table-warning"{% endif %}>
  16. {% if forloop.first %}<td class="table-active" rowspan="{{ service.list|length }}"><span style="writing-mode: vertical-lr;">{{ site.grouper }} - {{ service.grouper }}</span></td>{% endif %}
  17. <td>
  18. {% if item.PIC_L_Chassi_Type == "PC"%}
  19. <i class="fas fa-hdd"></i>
  20. {% elif item.PIC_L_Chassi_Type == "CL" %}
  21. <i class="fas fa-network-wired"></i>
  22. {% elif item.PIC_L_Chassi_Type == "PORTABLE" %}
  23. <i class="fas fa-laptop"></i>
  24. {% elif item.PIC_L_Chassi_Type == "PANEL-PC" %}
  25. <i class="fas fa-tablet-alt"></i>
  26. {% endif %}
  27. {{item.get_PIC_L_Chassi_Type_display}} {% if item.PIC_Deg == 1%}/ DEG{% endif %}
  28. </td>
  29. <td>{% for accessoir in item.accessoir %}{% if accessoir.Accessory_N_slugify == "double-ecrans"%}<i class="{{accessoir.Accessory_icone}}" alt="{{accessoir.Accessory_icone}}"></i><i class="{{accessoir.Accessory_icone}}" alt="{{accessoir.Accessory_icone}}"></i>{% else %}<i class="{{accessoir.Accessory_icone}}"></i>{% endif %}&nbsp;{% endfor %}</td>
  30. <td>{{ item.PIC_Nom_netbios }}</td>
  31. <td>{{ item.PIC_Utilisateur }}</td>
  32. <td>{% if item.PIC_OS != none %}{{ item.PIC_OS }}{% else %}&nbsp;{% endif %}</td>
  33. </tr>
  34. {% if forloop.last %}
  35. <tr class="table-active">
  36. <td >&nbsp;</td>
  37. <td colspan="2">
  38. {% regroup items_imp by PIC_Site.CLIN_Anag as imp_by_site %}
  39. {% for imp_site in imp_by_site %}
  40. {% regroup imp_site.list by PIC_Service as imp_by_service %}
  41. {% for imp_service in imp_by_service %}
  42. {% if imp_site.grouper == site.grouper and imp_service.grouper == service.grouper %}
  43. Nb d'imprimantes : {{imp_service.list|length}}
  44. {% endif %}
  45. {% endfor %}
  46. {% endfor %}
  47. &nbsp;
  48. </td>
  49. <td colspan="2">Nb de postes informatique : {{ forloop.counter }}</td>
  50. <td >&nbsp;</td>
  51. </tr>
  52. {% endif %}
  53. {% endfor %}
  54. <tr><td>&nbsp;</td></tr>
  55. {% endfor %}
  56. </table>
  57. {% endfor %}
  58. {% endblock %}
  59. {% block right_panel %}
  60. <div class="card-body">
  61. <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>
  62. </div>
  63. {% endblock %}