mirror of
https://github.com/nanoy42/coope
synced 2024-12-25 00:13:46 +00:00
23 lines
1.2 KiB
HTML
23 lines
1.2 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.stock }}<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 %}
|