123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <table class="table table-hover">
- <thead class="thead-dark">
- <tr>
- <th scope="col">Site</th>
- <th scope="col">Service</th>
- <th scope="col">Fonction</th>
- <th scope="col">Nom</th>
- <th scope="col">Prénom</th>
- <th scope="col">Date d'arrivée</th>
- <th scope="col">Date de départ</th>
- <th scope="col">Applications</th>
- <th scope="col">Outils</th>
- </tr>
- </thead>
-
- {% for item in data_query %}
- {% if item.GES_OK == True and item.GES_Date_Sup and item.GES_SUP == True %}
- <tr class="table-danger">
- {% elif item.GES_OK == True and item.GES_Date_Sup %}
- <tr class="table-warning">
- {% elif item.GES_OK == True %}
- <tr class="table-success">
- {% else %}
- <tr>
- {% endif %}
- <td>{{item.GES_Site}}</td>
- <td>{{item.GES_Service}}</td>
- <td>{{item.GES_Fonction}}</td>
- <td>{{item.GES_Nom}}</td>
- <td>{{item.GES_Prenom}}</td>
- <td>{% if item.GES_Date %}{{item.GES_Date}}{% else %} {% endif %}</td>
- <td>{% if item.GES_Date_Sup %}{{item.GES_Date_Sup}}{% else %} {% endif %}</td>
- <td>{% if item.GES_APPs != "" %}{% for apps in item.GES_APPs.all %}{{ apps.GESAP_Nom }}{% if not forloop.last %}, {% endif %}{% endfor %}{% else %} {% endif %}</td>
- <td onmouseover="this.style.cursor='pointer';">
- <a class="text-reset" target="_blank" href="{% url 'gest_user_api_user_get_for_send' item.id %}"><i class="fa fa-print"></i></a>
- <i class="fas fa-search-plus" onclick="bt_get_info({{item.id}})"></i>
- <i class="fas fa-user-edit" onclick="bt_edit_info({{item.id}})" ></i>
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
|