{% extends "request_base.html" %}

{% load url from future %}
{% block breadcrumb %}
<p><a href="../../">Tableau de bord</a> » <a href="../">Demande n&deg;{{ poly_request.request_number }}</a> » Historique</p>
{% endblock %}
{% block content %}
<table id="history-table" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th>Date</th>
            <th>ÉTAT</th>
            <th>Quoi</th>
            <th>Qui</th>
            <th>Commentaire</th>
        </tr>
    </thead>
    <tbody>
{% for h in poly_request.history_set.all %}
    <tr>
        <td>{{ h.date }}</td>
        <td>{{ h.new_status }}</td>
        <td>{{ h.action }}</td>
        <td>{{ h.user }}</td>
        <td>{{ h.description }}</td>
    </tr>
{% endfor %}
    </tbody>
</table>
 <div class="span12">
       <div class="pull-left">
               <a class="btn back-button" href=".."><i class="icon-backward"></i> Retour</a>
       </div>
</div>
{% endblock %}
