{% extends 'kfet/base_col_2.html' %}
{% block title %}Articles{% endblock %}
{% block header-title %}Articles{% endblock %}
{% block fixed %}
{% endblock %}
{% block main %}
Article{{ articles|length|pluralize}} en vente
Nom |
Prix |
Stock |
En vente |
Affiché |
Dernier inventaire |
{% regroup articles by category as category_list %}
{% for category in category_list %}
{{ category.grouper }} |
{% for article in category.list %}
{{ article.name }}
|
{{ article.price }}€ |
{{ article.stock }} |
{{ article.is_sold | yesno:"En vente,Non vendu"}} |
{{ article.hidden | yesno:"Caché,Affiché" }} |
{% with last_inventory=article.inventory.0 %}
{{ last_inventory.at|date:'d/m/Y H:i' }}
|
{% endwith %}
{% endfor %}
{% endfor %}
Article{{ not_sold_articles|length|pluralize }} non vendu{{ nots_sold_article|length|pluralize }}
Nom |
Prix |
Stock |
En vente |
Affiché |
Dernier inventaire |
{% regroup not_sold_articles by category as not_sold_category_list %}
{% for category in not_sold_category_list %}
{{ category.grouper }} |
{% for article in category.list %}
{{ article.name }}
|
{{ article.price }}€ |
{{ article.stock }} |
{{ article.is_sold | yesno:"En vente,Non vendu"}} |
{{ article.hidden | yesno:"Caché,Affiché" }} |
{% with last_inventory=article.inventory.0 %}
{{ last_inventory.at|date:'d/m/Y H:i' }}
|
{% endwith %}
{% endfor %}
{% endfor %}
{% endblock %}