1499c0bced
K-Fêt - Wagtail - Page content becomes a StreamField. - GroupTeam snippet becomes a block for stream field. - Navigation menu moved becomes a "flatmenu", preventing possible future conflicts. - Page layout can be modified in wagtail admin. K-Fêt - Add shorthands for ukf account balance/article price. - Cleaning stylesheets and templates.
44 lines
1 KiB
HTML
44 lines
1 KiB
HTML
{% extends "kfet/base_col_2.html" %}
|
|
|
|
{% block title %}Categories d'articles{% endblock %}
|
|
{% block header-title %}Categories d'articles{% endblock %}
|
|
|
|
{% block fixed %}
|
|
|
|
<aside>
|
|
<div class="heading">
|
|
{{ categories|length }}
|
|
<span class="sub">catégorie{{ categories|length|pluralize }}</span>
|
|
</div>
|
|
</aside>
|
|
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-hover table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<td>Nom</td>
|
|
<td class="text-right">Nombre d'articles</td>
|
|
<td class="text-right">Peut être majorée</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for category in categories %}
|
|
<tr>
|
|
<td>
|
|
<a href="{% url 'kfet.category.update' category.pk %}">
|
|
{{ category.name }}
|
|
</a>
|
|
</td>
|
|
<td class="text-right">{{ category.articles.all|length }}</td>
|
|
<td class="text-right">{{ category.has_addcost | yesno:"Oui,Non"}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
{% endblock %}
|