mirror of
https://github.com/nanoy42/coope
synced 2024-11-22 19:33:11 +00:00
25 lines
1.3 KiB
HTML
25 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block entete %}Gestion des produits : Profil de {{product}}{% endblock %}
|
|
{% block navbar %}
|
|
<ul>
|
|
<li><a href="#first">Général</a></li>
|
|
</ul>
|
|
{% endblock %}
|
|
{% block content %}
|
|
<section id="first" class="main">
|
|
<header class="major">
|
|
<h2>Général</h2>
|
|
</header>
|
|
<a class="button small" href="{% url 'gestion:productsList' %}">Liste des produits</a><br><br>
|
|
{% if perms.gestion.change_product %}<a href="{% url 'gestion:switchActivate' product.pk %}" class="button small">{% if product.is_active %}Désa{% else %}A{% endif %}ctiver</a> <a href="{% url 'gestion:editProduct' product.pk %}" class="button small">Modifier</a><br>{% endif %}<br>
|
|
<strong>Nom</strong> : {{ product.name }}<br>
|
|
<strong>Prix de vente</strong> : {{ product.amount }}€<br>
|
|
<strong>Stock en soute</strong> : {{ product.stockHold }}<br>
|
|
<strong>Stock au bar</strong> : {{ product.stockBar }}<br>
|
|
<strong>Code Barre</strong> : {{ product.barcode }}<br>
|
|
<strong>Catégorie</strong> : <a href="{% url 'gestion:categoryProfile' product.category.pk %}">{{ product.category }}</a><br>
|
|
<strong>Actif</strong> : {{ product.is_active | yesno:"Oui, Non"}}<br>
|
|
<strong>Dégré</strong> : {{ product.deg }}<br>
|
|
<strong>Volume</strong> : {{ product.volume }}cl<br>
|
|
</section>
|
|
{% endblock %}
|