mirror of
https://github.com/nanoy42/coope
synced 2024-11-22 19:33:11 +00:00
Add number of products on product's list
This commit is contained in:
parent
524f3dcc06
commit
acf770a4ef
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>Nom</th>
|
<th>Nom</th>
|
||||||
<th>Ordre</th>
|
<th>Ordre</th>
|
||||||
|
<th>Nombre de produits (dont actifs)</th>
|
||||||
<th>Administrer</th>
|
<th>Administrer</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -27,6 +28,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{% url 'gestion:categoryProfile' category.pk %}">{{ category }}</a></td>
|
<td><a href="{% url 'gestion:categoryProfile' category.pk %}">{{ category }}</a></td>
|
||||||
<td>{% if category.order == 0 %}0 (non affichéé){% else %}{{category.order}}{% endif %}</td>
|
<td>{% if category.order == 0 %}0 (non affichéé){% else %}{{category.order}}{% endif %}</td>
|
||||||
|
<td>{{category.product_set.count}} ({{category.active_products.count}})</td>
|
||||||
<td><a href="{% url 'gestion:categoryProfile' category.pk %}" class="button small"><i class="fa fa-eye"></i> Profil</a> {% if perms.gestion.change_category %}<a href="{% url 'gestion:editCategory' category.pk %}" class="button small"><i class="fa fa-pencil-alt"></i> Modifier</a>{% endif %}</td>
|
<td><a href="{% url 'gestion:categoryProfile' category.pk %}" class="button small"><i class="fa fa-eye"></i> Profil</a> {% if perms.gestion.change_category %}<a href="{% url 'gestion:editCategory' category.pk %}" class="button small"><i class="fa fa-pencil-alt"></i> Modifier</a>{% endif %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue