{# articles (tableau de dictionnaires) * tableau de "article" * id_article, nom, type_article_id, prix * option : * stock , * nb_avis , * nb_declinaisons #} {% extends 'admin/layout_admin.html' %} {% block title %}
nom | id | type article (id) | prix | stock | nouveaux avis | nb déclinaisons | image | opération | |
---|---|---|---|---|---|---|---|---|---|
{{ ligne.nom }} | {{ ligne.id_article }} | {{ ligne.libelle }} ({{ ligne.type_article_id }}) | {#{ ligne.prix }#} {{ "{:,.2f} €".format(ligne.prix) }} | {% if ligne.stock is defined %} {% if ligne.stock != None %} {% if ligne.stock > 0 %} {{ ligne.stock }} {% if ligne.min_stock is defined and ligne.min_stock <= 0 %} (⚠️ déclinaison(s) en rupture) {% endif %} {% else %} article momentanément indisponible {% endif %} {% else %} déclinaison ND {% endif %} {% else %} ND {% endif %} | {% if ligne.nb_commentaires_nouveaux is defined %} {% if ligne.nb_commentaires_nouveaux > 0 %} {{ ligne.nb_commentaires_nouveaux }} avis non lu(s) ⚠️ {% else %} {% endif %} {% else %} nb_avis ND {% endif %} | {#{{ ligne.date_create }} {{ ligne.date_create.strftime('%d-%m-%Y') }} | #}{% if ligne.nb_declinaisons is defined %} {{ ligne.nb_declinaisons }} {% else %} decli ND {% endif %} | {{ ligne.image }}
{% if ligne.image is not none %}
![]() |
supprimer editer commentaires |
pas d'article |