From dcc19bd9e8a555fc077b6ec7dea80181e1f8d3b9 Mon Sep 17 00:00:00 2001 From: Qwann Date: Mon, 6 Mar 2017 01:58:33 +0100 Subject: [PATCH] article.hidden in article & article_read --- kfet/templates/kfet/article.html | 4 +++- kfet/templates/kfet/article_read.html | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kfet/templates/kfet/article.html b/kfet/templates/kfet/article.html index 1d0a86fd..20d3ed50 100644 --- a/kfet/templates/kfet/article.html +++ b/kfet/templates/kfet/article.html @@ -33,6 +33,7 @@ Prix Stock En vente + Affiché Dernier inventaire @@ -40,7 +41,7 @@ {% for article in articles %} {% ifchanged article.category %} - {{ article.category.name }} + {{ article.category.name }} {% endifchanged %} @@ -53,6 +54,7 @@ {{ article.price }}€ {{ article.stock }} {{ article.is_sold }} + {{ article.hidden | yesno:"Caché,Affiché" }} {{ article.inventory.0.at }} {% endfor %} diff --git a/kfet/templates/kfet/article_read.html b/kfet/templates/kfet/article_read.html index 89a13cba..59481f26 100644 --- a/kfet/templates/kfet/article_read.html +++ b/kfet/templates/kfet/article_read.html @@ -16,6 +16,7 @@
Prix (hors réduc.): {{ article.price }}€
Stock: {{ article.stock }}
En vente: {{ article.is_sold }}
+
Affiché : {{ article.hidden | yesno:"Non,Oui" }}