gest_user_api_get_list.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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">Date d'arrivée</th>
  10. <th scope="col">Date de départ</th>
  11. <th scope="col">Applications</th>
  12. <th scope="col">Outils</th>
  13. </tr>
  14. </thead>
  15. {% for item in data_query %}
  16. {% if item.GES_OK == True and item.GES_Date_Sup and item.GES_SUP == True %}
  17. <tr class="table-danger">
  18. {% elif item.GES_OK == True and item.GES_Date_Sup %}
  19. <tr class="table-warning">
  20. {% elif item.GES_OK == True %}
  21. <tr class="table-success">
  22. {% else %}
  23. <tr>
  24. {% endif %}
  25. <td>{{item.GES_Site}}</td>
  26. <td>{{item.GES_Service}}</td>
  27. <td>{{item.GES_Fonction}}</td>
  28. <td>{{item.GES_Nom}}</td>
  29. <td>{{item.GES_Prenom}}</td>
  30. <td>{% if item.GES_Date %}{{item.GES_Date}}{% else %}&nbsp;{% endif %}</td>
  31. <td>{% if item.GES_Date_Sup %}{{item.GES_Date_Sup}}{% else %}&nbsp;{% endif %}</td>
  32. <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>
  33. <td onmouseover="this.style.cursor='pointer';">
  34. <a class="text-reset" target="_blank" href="{% url 'gest_user_api_user_get_for_send' item.id %}"><i class="fa fa-print"></i></a>
  35. <i class="fas fa-search-plus" onclick="bt_get_info({{item.id}})"></i>
  36. <i class="fas fa-user-edit" onclick="bt_edit_info({{item.id}})" ></i>
  37. </td>
  38. </tr>
  39. {% endfor %}
  40. </tbody>
  41. </table>