article.hidden in article & article_read

This commit is contained in:
Qwann 2017-03-06 01:58:33 +01:00
parent 197da29366
commit dcc19bd9e8
2 changed files with 4 additions and 1 deletions

View file

@ -33,6 +33,7 @@
<td class="text-right">Prix</td>
<td class="text-right">Stock</td>
<td class="text-right">En vente</td>
<td class="text-right">Affiché</td>
<td class="text-right">Dernier inventaire</td>
</tr>
</thead>
@ -40,7 +41,7 @@
{% for article in articles %}
{% ifchanged article.category %}
<tr class="section">
<td colspan="6">{{ article.category.name }}</td>
<td colspan="7">{{ article.category.name }}</td>
</tr>
{% endifchanged %}
<tr>
@ -53,6 +54,7 @@
<td class="text-right">{{ article.price }}€</td>
<td class="text-right">{{ article.stock }}</td>
<td class="text-right">{{ article.is_sold }}</td>
<td class="text-right">{{ article.hidden | yesno:"Caché,Affiché" }}</td>
<td class="text-right">{{ article.inventory.0.at }}</td>
</tr>
{% endfor %}

View file

@ -16,6 +16,7 @@
<div class="line">Prix (hors réduc.): {{ article.price }}€</div>
<div class="line">Stock: {{ article.stock }}</div>
<div class="line">En vente: {{ article.is_sold }}</div>
<div class="line">Affiché : {{ article.hidden | yesno:"Non,Oui" }}</div>
</div>
</div>
<div class="buttons">