gest_user_api_get_list.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <table class="table table-hover">
  2. <thead class="thead-dark">
  3. <tr>
  4. <th scope="col">Site</th>
  5. <th scope="col">Service</th>
  6. <th scope="col">Fonction</th>
  7. <th scope="col">Nom</th>
  8. <th scope="col">Prénom</th>
  9. <th scope="col">Applications</th>
  10. <th scope="col">Outils</th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. {% for item in data_query %}
  15. {% if item.GES_OK == True %}
  16. <tr class="table-success">
  17. {% else %}
  18. <tr>
  19. {% endif %}
  20. <td>{{item.get_GES_L_Site_display}}</td>
  21. <td>{{item.GES_Service}}</td>
  22. <td>{{item.GES_Fonction}}</td>
  23. <td>{{item.GES_Nom}}</td>
  24. <td>{{item.GES_Prenom}}</td>
  25. <td>{% if item.GES_APPs != "" %}{% for apps in item.GES_APPs.all %}{{ apps.GESAP_Nom }}{% if not forloop.last %}, {% endif %}{% endfor %}{% else %}&nbsp;{% endif %}</td>
  26. <td onmouseover="this.style.cursor='pointer';">
  27. <a class="text-reset" target="_blank" href="{% url 'gest_user_api_user_get_for_send' item.id %}"><i class="fa fa-print">[IMP]</i></a>
  28. <i class="fas fa-search-plus" onclick="bt_get_info({{item.id}})">[Info]</i>
  29. <i class="fas fa-user-edit" onclick="bt_edit_info({{item.id}})" >[Edit]</i>
  30. </td>
  31. </tr>
  32. {% endfor %}
  33. </tbody>
  34. </table>