diff --git a/admin_board_view/templates/user_home.html b/admin_board_view/templates/user_home.html index 99fb349..db70e3e 100644 --- a/admin_board_view/templates/user_home.html +++ b/admin_board_view/templates/user_home.html @@ -2,13 +2,68 @@ {% load static %} {% block body %}
-

Welcome {{ user }}

-

- You are not allowed to view this page as a non admin. Please logout and try again: -

-
- {% csrf_token %} - -
+

Welcome {{ user_info.name }}

+
+ Current balance: {{ user_info.euro_balance }} +
+
+
+
+
+
Product sales
+
+ + + + + + + + + + {% for transaction in sales %} + + + + + + {% endfor %} + +
DateSumProducts
{{ transaction.key.date }}€{{ transaction.key.transaction_sum }} + {% for product in transaction.values %} + {{ product.amount }}x {{ product.product_id.name }}
+ {% endfor %} +
+ {% include "pagination_footer.html" with page=sales page_name='sales' %} +
+
+
+
+
+
Top ups
+
+ + + + + + + + + + {% for top_up in top_ups.object_list %} + + + + + + {% endfor %} + +
DateSumType
{{ top_up.date }}€{{ top_up.transaction_sum }}{% if top_up.type == 1 %}Pin{% elif top_up.type == 3 %}Mollie{% endif %}
+ {% include "pagination_footer.html" with page=top_ups page_name='top_ups' %} +
+
+
+
{% endblock %}