parc_info_api_user_get.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <div class="modal-dialog" role="document">
  2. <div class="modal-content">
  3. {% if item.PIC_L_Statut == "PREPROD" %}
  4. <div class="modal-header border-success bg-success">
  5. {% elif item.PIC_L_Statut == "EN STOCK" %}
  6. <div class="modal-header border-info bg-info">
  7. {% elif item.PIC_L_Statut == "HS" %}
  8. <div class="modal-header border-warning bg-warning">
  9. {% elif item.PIC_L_Statut == "ADEPROD" %}
  10. <div class="modal-header border-danger bg-danger">
  11. {% else%}
  12. <div class="modal-header">
  13. {% endif %}
  14. <h5 class="modal-title">Détail d'un poste utilisateur</h5>
  15. <button type="button" class="btn btn-sm btn-dark close" data-dismiss="modal" aria-label="Close">
  16. <span aria-hidden="true">&times;</span>
  17. </button>
  18. </div>
  19. <div class="modal-body">
  20. <table class="table table-sm">
  21. <tr><td>Site : </td><td>{{item.PIC_Site}}</td></tr>
  22. <tr><td>Type de chassi : </td><td>{{item.get_PIC_L_Chassi_Type_display}}</td></tr>
  23. <tr><td>Service : </td><td>{{item.PIC_Service}}</td></tr>
  24. <tr><td>Nom NETBIOS : </td><td>{{item.PIC_Nom_netbios}}</td></tr>
  25. <tr><td>Utilisateur : </td><td>{{item.PIC_Utilisateur}}</td></tr>
  26. {%if item.PIC_OS != None %}<tr><td>OS : </td><td>{{item.PIC_OS}}</td></tr>{% endif %}
  27. <tr><td>Adresse IP : </td><td>{{item.PIC_Adresse_IP}}</td></tr>
  28. {%if item.PIC_L_Chassi_Type != "IMP" %}<tr><td>Adresse MAC : </td><td>{{item.PIC_Adresse_Mac}}</td></tr>{% endif %}
  29. {%if item.PIC_Marque != "" %}<tr><td>Marque : </td><td>{{item.PIC_Marque}}</td></tr>{% endif %}
  30. {%if item.PIC_Type != "" %}<tr><td>Modèle : </td><td>{{item.PIC_Type}}</td></tr>{% endif %}
  31. {%if item.PIC_SN != "" %}<tr><td>SN : </td><td>{{item.PIC_SN}}</td></tr>{% endif %}
  32. {%if item.PIC_CPU != None %}<tr><td>CPU : </td><td>{{item.PIC_CPU}}</td></tr>{% endif %}
  33. {%if item.PIC_RAM != 0 %}<tr><td>RAM : </td><td>{{item.PIC_RAM}} Go</td></tr>{% endif %}
  34. <tr><td>Localisation : </td><td>{{item.PIC_Local}}</td></tr>
  35. {%if item.PIC_Precisions != "" %}<tr><td>Precisions : </td><td>{{item.PIC_Precisions}}</td></tr>{% endif %}
  36. {%if item.PIC_Commentaires != "" %}<tr><td>Commentaires : </td><td>{{item.PIS_Commentaires}}</td></tr>{% endif %}
  37. </table>
  38. {% if item.accessoir %}
  39. <h6>Accessoires lié au poste</h6>
  40. <table class="table table-sm">
  41. {% for accessoir in item.accessoir %}
  42. <tr>
  43. <td>
  44. {% if accessoir.Accessory_N_slugify == "double-ecrans"%}
  45. <i class="{{accessoir.Accessory_icone}}"></i><i class="{{accessoir.Accessory_icone}}"></i>
  46. {% else %}
  47. <i class="{{accessoir.Accessory_icone}}"></i>
  48. {% endif %}
  49. </td>
  50. <td>{{accessoir.Accessory_Nom}}</td>
  51. </tr>
  52. {% endfor %}
  53. </table>
  54. {% endif %}
  55. </div>
  56. {% if item.PIC_L_Statut == "PREPROD" %}
  57. <div class="modal-footer border-success bg-success">
  58. {% elif item.PIC_L_Statut == "EN STOCK" %}
  59. <div class="modal-footer border-info bg-info">
  60. {% elif item.PIC_L_Statut == "HS" %}
  61. <div class="modal-footer border-warning bg-warning">
  62. {% elif item.PIC_L_Statut == "ADEPROD" %}
  63. <div class="modal-footer border-danger bg-danger">
  64. {% else%}
  65. <div class="modal-footer">
  66. {% endif %}
  67. {% if item.PIC_L_Chassi_Type == "IMP" and item.PIC_Adresse_IP != none %}<a class="btn btn-dark" href="http://{{item.PIC_Adresse_IP}}" target="_blank" role="button"><i class="fas fa-external-link-alt"></i> WebAdmin</a>{% endif %}
  68. <button type="button" class="btn btn-dark" onclick="bt_get_user_hist({{item.id}})"><i class="fas fa-history"></i> Historiques</button>
  69. <button type="button" class="btn btn-dark" onclick="bt_edit_user_info({{item.id}})"><i class="far fa-edit"></i> Mise à jour</button>
  70. <button type="button" class="btn btn-dark" onclick="bt_edit_user_statut({{item.id}})"><i class="fas fa-tasks"></i> Changer Status</button>
  71. </div>
  72. </div>
  73. </div>