
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'collabs/style.css' %}">

{% if latest_hour_list %}
<h1>Liste des heures supplémentaires:</h1>
<table>
    <tr>
        <th>Date</th>
        <th>Qui</th>
        <th>Combien</th>
        <th>Total du mois</th>
        <th>Traité</th>
    </tr>
    {% for collabs_hour in latest_hour_list %}
    <tr>
        <td>
        <a href="/admin/collabs/collabs_hour/{{ collabs_hour.id }}/change/">{{ collabs_hour.dtCreated }}</a>
        </td>
        <td>
            {{ collabs_hour.user }}
        </td>
        <td>
             {{collabs_hour.nHour}}:{{collabs_hour.nMinutes}}
        </td>
        <td>
             {{collabs_hour.total}}
        </td>
        <td>
            {{collabs_hour.bNoticed}}
        </td>
    </tr>

    {% endfor %}




</table>
<ul>
    {% for collabs_hour in latest_hour_list %}
    <li><a href="/admin/collabs/collabs_hour/{{ collabs_hour.id }}/change/">{{ collabs_hour.dtCreated }} {{ collabs_hour.user }} ({{collabs_hour.total}}) => {{collabs_hour.nHour}}:{{collabs_hour.nMinutes}}</a></li>
    {% endfor %}
</ul>
{% else %}
<p>No Collabs_hour.</p>
{% endif %}