2018-10-05 22:03:02 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% block entete %}<h1>Gestion des produits</h1>{% endblock %}
|
|
|
|
{% block navbar%}
|
|
|
|
<ul>
|
|
|
|
<li><a href="#first">Produits</a></li>
|
|
|
|
<li><a href="#second">Futs</a></li>
|
|
|
|
<li><a href="#third">Menus</a></li>
|
|
|
|
<li><a href="#fourth">Stocks</a></li>
|
|
|
|
</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 %}
|