1
0

gest_user_api_get.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <div class="modal-dialog modal-lg" role="document">
  2. <div class="modal-content">
  3. <div class="modal-header">
  4. <h5 class="modal-title">Détail d'un utilisateur</h5>
  5. <button type="button" class="btn btn-sm btn-dark close" data-dismiss="modal" aria-label="Close">
  6. <span aria-hidden="true">&times;</span>
  7. </button>
  8. </div>
  9. <div class="modal-body">
  10. <table class="table table-sm">
  11. <tr><td>Nom : </td><td> {{item.GES_Nom}} </td></tr>
  12. <tr><td>Prénom : </td><td> {{item.GES_Prenom}} </td></tr>
  13. <tr><td>Site : </td><td> {{item.get_GES_L_Site_display}} </td></tr>
  14. <tr><td>Service : </td><td> {{item.GES_Service}} </td></tr>
  15. <tr><td>Fonction : </td><td> {{item.GES_Fonction}} </td></tr>
  16. </table>
  17. {% if item.apps %}
  18. <h4>Liste des applications sélectionné avec le profil</h4>
  19. <table class="table table-sm">
  20. <tr>
  21. <th scope="col">Nom de l'application</th>
  22. <th scope="col">Login</th>
  23. <th scope="col">Mot de passe</th>
  24. <th scope="col">Crée ?</th>
  25. <th scope="col">Outils</th>
  26. </tr>
  27. {% for apps in item.apps %}
  28. {% if apps.GES_APPLink_Create == True %}
  29. <tr class="table-success">
  30. {% else %}
  31. <tr>
  32. {% endif %}
  33. <td> {{apps.GES_APPLink_APP.GESAP_Nom}} </td>
  34. <td> {{apps.GES_APPLink_Login}} </td>
  35. <td> {{apps.GES_APPLink_MDP}} </td>
  36. <td onmouseover="this.style.cursor='pointer';" onclick="bt_switch_app_status({{apps.id}})">{% if apps.GES_APPLink_Create == True %} <span class="text-success"><i class="fas fa-clipboard-check" title="[ Crée ]"></i></span>{% else %}<i class="fas fa-clipboard-list" title="[ A Faire ]"></i> {% endif %}</td>
  37. <td onmouseover="this.style.cursor='pointer';" onclick="bt_edit_app_info({{apps.id}})"><i class="fas fa-tools"></i></td>
  38. </tr>
  39. {% endfor %}
  40. </table>
  41. <table class="table table-sm">
  42. {% for apps in item.apps %}
  43. {% if apps.GES_APPLink_APP.GESAP_Sup_Nom != "" %}
  44. <tr>
  45. <td><b> {{apps.GES_APPLink_APP.GESAP_Nom}} </b></td>
  46. <td><b> {{apps.GES_APPLink_APP.GESAP_Sup_Nom}} </b></td>
  47. <td>{% if apps.GES_APPLink_Sup != ""%} {{apps.GES_APPLink_Sup}} {% else %}{% endif %}</td>
  48. </tr>
  49. {% endif %}
  50. {% endfor %}
  51. </table>
  52. {% endif %}
  53. <p><i class="fas fa-share-alt"></i> http://srv-gparc.intra.stjacques/user/liste?get_id={{item.id}}</p>
  54. </div>
  55. <div class="modal-footer">
  56. <a class="btn btn-dark" target="_blank" href="{% url 'gest_user_api_user_get_for_send' item.id %}" role="button"><i class="fa fa-print"></i> Pour impression</a>
  57. <button type="button" class="btn btn-dark" onclick="bt_edit_info({{item.id}})"><i class="far fa-edit"></i> Mise à jour</button>
  58. </div>
  59. </div>
  60. </div>