/
category.html
34 lines (21 loc) · 948 Bytes
/
category.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% extends "finances/layout.html" %}
{% load static %}
{% block body %}
<h2>{{ cat }}</h2>
<h5>Amount: ${{ cat_sum }}</h5>
{% include 'finances/transactions.html' %}
<br>
<ul class="pagination">
{% if transactions.has_previous %}
<li class="page-item"><a class="page-link" href="{% url 'index' %}?page={{transactions.previous_page_number}}">Previous</a></li>
{% endif %}
<li class="page-item"><a class="page-link" href="{% url 'index' %}?page={{transactions.number}}">{{transactions.number}}</a></li>
{% if transactions.has_next %}
<li class="page-item"><a class="page-link" href="{% url 'index' %}?page={{transactions.next_page_number}}">Next</a></li>
{% endif %}
</ul>
{% endblock %}
{% block script %}
<script src="{% static 'finances/index.js' %}"></script>
<script src="{% static 'finances/graphs.js' %}"></script>
{% endblock %}