3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-12-26 17:03:46 +00:00
coope/gestion/templates/gestion/products_index.html

62 lines
1.8 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>
<li><a href="#first">Produits</a></li>
<li><a href="#second">Futs</a></li>
<li><a href="#third">Menus</a></li>
</ul>
{% endblock %}
{% block content %}
<section id="first" class="main">
<header class="major">
<h2>Produits</h2>
</header>
Actions possibles :
<ul>
2018-12-02 18:26:33 +00:00
{% if perms.gestion.add_product %}
2018-10-05 22:03:02 +00:00
<li><a href="{% url 'gestion:addProduct' %}">Créer un produit</a></li>
2018-12-02 18:26:33 +00:00
{% endif %}
2018-12-05 00:43:21 +00:00
{% if perms.gestion.view_product %}
2018-11-22 21:52:15 +00:00
<li><a href="{% url 'gestion:searchProduct' %}">Rechercher un produit</a></li>
<li><a href="{% url 'gestion:productsList' %}">Lister tous les produits</a></li>
2018-12-02 18:26:33 +00:00
{% endif %}
2018-10-05 22:03:02 +00:00
</ul>
</section>
<section id="second" class="main">
<header class="major">
<h2>Futs</h2>
</header>
Actions possibles :
<ul>
2018-12-02 18:26:33 +00:00
{% if perms.gestion.add_keg %}
2018-11-22 21:52:15 +00:00
<li><a href="{% url 'gestion:addKeg' %}">Créer un fut</a></li>
2018-12-02 18:26:33 +00:00
{% endif %}
2018-12-05 00:43:21 +00:00
{% if perms.gestion.open_keg %}
2018-11-25 12:52:32 +00:00
<li><a href="{% url 'gestion:openKeg' %}">Percuter un fut</a></li>
2018-12-02 18:26:33 +00:00
{% endif %}
2018-12-05 00:43:21 +00:00
{% if perms.gestion.close_keg %}
2018-11-25 12:52:32 +00:00
<li><a href="{% url 'gestion:closeKeg' %}">Fermer un fût</a></li>
2018-12-02 18:26:33 +00:00
{% endif %}
2018-12-05 00:43:21 +00:00
{% if perms.gestion.view_keg %}
2018-11-25 12:52:32 +00:00
<li><a href="{% url 'gestion:kegsList' %}">Lister les futs</a></li>
2018-12-02 18:26:33 +00:00
{% endif %}
2018-10-05 22:03:02 +00:00
</ul>
</section>
<section id="third" class="main">
<header class="major">
<h2>Menus</h2>
</header>
Actions possibles :
<ul>
2018-12-02 18:26:33 +00:00
{% if perms.gestion.add_menu %}
2018-10-05 22:03:02 +00:00
<li><a href="{% url 'gestion:addMenu' %}">Créer un menu</a></li>
2018-12-02 18:26:33 +00:00
{% endif %}
{% if perms.gestion.view_menu %}
2018-11-25 23:15:09 +00:00
<li><a href="{% url 'gestion:searchMenu' %}">Rechercher un menu</a></li>
<li><a href="{% url 'gestion:menusList' %}">Lister les menus</a></li>
2018-12-02 18:26:33 +00:00
{% endif %}
2018-10-05 22:03:02 +00:00
</ul>
</section>
{% endblock %}