aff_chambres.html 819 Bytes
Newer Older
chirac's avatar
chirac committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<table class="table table-striped">
    <thead>
        <tr>
            <th>Chambre</th>
            <th>Commentaire</th>
            <th></th>
        </tr>
   </thead>
   {% for room in room_list %}
   <tr>
       <td>{{room.name}}</td>
       <td>{{room.details}}</td>
       <td>{% if is_infra %}<a class="btn btn-primary btn-sm" role="button" href="{% url 'topologie:edit-room' room.id %}"><i class="glyphicon glyphicon-random"></i>  Editer</a>
14 15
       <a class="btn btn-danger btn-sm" role="button" href="{% url 'topologie:del-room' room.id %}"><i class="glyphicon glyphicon-trash"></i> Supprimer</a>{% endif %}
       <a class="btn btn-info btn-sm" role="button" href="{% url 'topologie:history' 'room' room.pk %}"><i class="glyphicon glyphicon-repeat"></i> Historique</a></td>
chirac's avatar
chirac committed
16 17 18
   </tr>
   {% endfor %}
</table>