gestioCOF/kfet/templates/kfet/inventory.html

47 lines
1.1 KiB
HTML

{% extends "kfet/base_col_2.html" %}
{% block title %}Inventaires{% endblock %}
{% block header-title %}Inventaires{% endblock %}
{% block fixed %}
<div class="buttons">
<a href="{% url 'kfet.inventory.create' %}" class="btn btn-primary">
<span class="glyphicon glyphicon-plus"></span>
<span>Nouveau</span>
</a>
</div>
{% endblock %}
{% block main %}
<div class="table-responsive">
<table
class="table table-hover table-condensed sortable"
{# Initial sort: [(at,desc)] #}
data-sortlist="[[0,1]]">
<thead>
<tr>
<td data-sorter="shortDate">Date</td>
<td>Par</td>
<td>Nb articles</td>
</tr>
</thead>
<tbody>
{% for inventory in inventories %}
<tr>
<td title="{{ inventory.at }}">
<a href="{% url 'kfet.inventory.read' inventory.pk %}">
{{ inventory.at|date:'d/m/Y H:i' }}
</a>
</td>
<td>{{ inventory.by }}</td>
<td>{{ inventory.nb_articles }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}