3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-06-02 21:31:47 +00:00
coope/gestion/templates/gestion/products_list.html

50 lines
1.1 KiB
HTML
Raw Normal View History

2018-10-05 22:03:02 +00:00
{% extends 'base.html' %}
{% block entete %}<h1>Gestion des produits</h1>{% endblock %}
{% block navbar%}
<ul>
2018-11-25 12:52:32 +00:00
<li><a href="#first">Liste des produits</a></li>
2018-10-05 22:03:02 +00:00
</ul>
{% endblock %}
{% block content %}
<section id="first" class="main">
<header class="major">
<h2>Liste des produits</h2>
</header>
2018-11-22 21:52:15 +00:00
<a class="button" href="{% url 'gestion:addProduct' %}">Créer un produit</a><br><br>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Nom</th>
<th>Prix</th>
<th>Stock (soute)</th>
<th>Stock (bar)</th>
<th>Code barre</th>
<th>Catégorie</th>
<th>Actif</th>
<th>Degré</th>
<th>Volume</th>
<th>Administrer</th>
</tr>
</thead>
<tbody>
{% for product in products %}
<tr>
<td>{{ product.name }}</td>
<td>{{ product.amount}}</td>
<td>{{ product.stockHold }}</td>
<td>{{ product.stockBar }}</td>
<td>{{ product.barcode }}</td>
<td>{{ product.category }}</td>
<td>{{ product.is_active }}</td>
<td>{{ product.degree }}</td>
<td>{{ product.volume }}</td>
<td></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
2018-10-05 22:03:02 +00:00
</section>
{% endblock %}