Add icons to categories
This commit is contained in:
parent
9ca4b0d391
commit
98a1037d5e
4 changed files with 27 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>{{ category }}</h1>
|
||||
<h1><i class="fa fa-{{ category.icon }}"></i> {{ category }}</h1>
|
||||
|
||||
<form action="{% url 'update_category' category.id %}" method="post">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
<span class="trader text center">{{ trans.trader|default_if_none:"–" }}</span>
|
||||
<span class="category text center">
|
||||
{% if trans.category %}
|
||||
<i class="fa fa-{{ trans.category.icon }}"></i>
|
||||
<a href="{% url 'category' trans.category.id %}">
|
||||
{{ trans.category }}
|
||||
</a>
|
||||
|
@ -44,7 +45,7 @@
|
|||
<h2>Catégories</h2>
|
||||
<div id="categories">
|
||||
{% for cat in categories %}
|
||||
<a href="{% url 'category' cat.id %}">{{ cat }}</a>
|
||||
<a href="{% url 'category' cat.id %}"><i class="fa fa-{{ cat.icon }}"></i> {{ cat }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue