gest_user_api_get.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {% load crispy_forms_tags %}
  2. <div class="modal-dialog modal-lg" role="document">
  3. <div class="modal-content">
  4. {% if item.GES_OK == True %}
  5. <div class="modal-header border-success bg-success">
  6. {% else%}
  7. <div class="modal-header">
  8. {% endif %}
  9. <h5 class="modal-title">Détail d'un utilisateur</h5>
  10. <button type="button" class="btn btn-sm btn-dark close" data-dismiss="modal" aria-label="Close">
  11. <span aria-hidden="true">&times;</span>
  12. </button>
  13. </div>
  14. <div class="modal-body">
  15. <table class="table table-sm">
  16. <tr><td>Nom : </td><td><input type="text" readonly="readonly" value="{{item.GES_Nom}}"/></td></tr>
  17. <tr><td>Prénom : </td><td><input type="text" readonly="readonly" value="{{item.GES_Prenom}}"/></td></tr>
  18. <tr><td>Site : </td><td> {{item.GES_Site}} </td></tr>
  19. <tr><td>Service : </td><td> {{item.GES_Service}} </td></tr>
  20. <tr><td>Fonction : </td><td> {{item.GES_Fonction}} </td></tr>
  21. <tr><td>Date d'arrivée : </td><td> {% if item.GES_Date %}{{item.GES_Date}}{% else %}&nbsp;{% endif %} </td></tr>
  22. </table>
  23. <h4>Liste des applications sélectionnées avec le profil</h4>
  24. <table class="table table-sm">
  25. <tr>
  26. <th scope="col">Nom de l'application</th>
  27. <th scope="col">Login</th>
  28. <th scope="col">Mot de passe</th>
  29. <th scope="col">Crée ?</th>
  30. <th scope="col">Outils</th>
  31. </tr>
  32. {% for apps in item.apps %}
  33. {% spaceless %}
  34. {% if apps.GES_APPLink_Create == True %}
  35. <tr class="table-success">
  36. {% else %}
  37. <tr>
  38. {% endif %}
  39. <td>{{apps.GES_APPLink_APP.GESAP_Nom}}</td>
  40. <td><input type="text" readonly="readonly" value="{{apps.GES_APPLink_Login}}"/></td>
  41. <td><input type="text" readonly="readonly" value="{{apps.GES_APPLink_MDP}}"/></td>
  42. <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>
  43. <td onmouseover="this.style.cursor='pointer';">
  44. {% if apps.GES_APPLink_APP.GESAP_Procedure != "" %}<span style="color: blue;"><a class="text-reset" target="_blank" href="{{ apps.GES_APPLink_APP.GESAP_Procedure }}"><i class="fas fa-info-circle"></i></a></span>&nbsp;{% endif %}
  45. <span onclick="bt_edit_app_info({{apps.id}})"><i class="fas fa-tools"></i></span>&nbsp;
  46. <span {% if apps.GES_APPLink_Create == False %}style="color: red;"{% endif %}{% if apps.GES_APPLink_Create == False %} onclick="bt_app_remove({{apps.id}})"{% endif %}><i class="fas fa-minus-square" {% if apps.GES_APPLink_Create == True %}title="Attention - La création de l'application doit étre annulé"{% endif %}></i></span>
  47. </td>
  48. </tr>
  49. {% endspaceless %}
  50. {% empty %}
  51. <tr><td></td><td colspan='4'><i>Pas d'application d'associé</i></td></tr>
  52. {% endfor %}
  53. <tr><td>Ajout d'un application</td><td>{{item.apps_form.GES_APPLink_APP}}</td><td><button type="button" class="btn btn-success btn-sm" onclick="bt_app_add({{item.id}})"><i class="fas fa-plus-square"></i> Ajouté</button><td></tr>
  54. </table>
  55. <table class="table table-sm">
  56. {% for apps in item.apps %}
  57. {% if apps.GES_APPLink_APP.GESAP_Sup_Nom != "" %}
  58. <tr>
  59. <td><b> {{apps.GES_APPLink_APP.GESAP_Nom}} </b></td>
  60. <td><b> {{apps.GES_APPLink_APP.GESAP_Sup_Nom}} </b></td>
  61. <td>{% if apps.GES_APPLink_Sup != ""%} {{apps.GES_APPLink_Sup}} {% else %}{% endif %}</td>
  62. </tr>
  63. {% endif %}
  64. {% endfor %}
  65. </table>
  66. <p><i class="fas fa-share-alt"></i> http://srv-gparc.intra.stjacques/user/liste?get_id={{item.id}}</p>
  67. </div>
  68. <div class="modal-footer">
  69. {% if item.isok == 1 and item.GES_OK == False %}<button type="button" class="btn btn-success" onclick="bt_edit_complete({{item.id}})"><i class="fas fa-check"></i> Finaliser</button>{% endif %}
  70. <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>
  71. <button type="button" class="btn btn-dark" onclick="bt_edit_info({{item.id}})"><i class="far fa-edit"></i> Mise à jour</button>
  72. </div>
  73. </div>
  74. </div>