diff --git a/src/backoffice/templates/chain_detail_backoffice.html b/src/backoffice/templates/chain_detail_backoffice.html new file mode 100644 index 00000000..d4b5a831 --- /dev/null +++ b/src/backoffice/templates/chain_detail_backoffice.html @@ -0,0 +1,45 @@ +{% extends 'base.html' %} +{% load bootstrap3 %} + +{% block content %} +
Credebtor Name | +Address | +Notes | +Expenses | +Expenses Total | +Revenues | +Revenues Total | +Actions | +
---|---|---|---|---|---|---|---|
{{ credebtor.name }} | +{{ credebtor.address }} | +{{ credebtor.notes|default:"N/A" }} | +{{ credebtor.expenses.count }} | +{{ credebtor.expenses_total }} DKK | +{{ credebtor.revenues.count }} | +{{ credebtor.revenues_total }} DKK | ++ Details + {% endfor %} + |
{{ chain.name }} has {{ chain.expenses.count }} expenses for a total of {{ chain.expenses_total }} DKK, and {{ chain.revenues.count }} revenues for a total of {{ chain.revenues_total }} DKK
+ {% if chain.notes %} +Notes: {{ chain.notes }}
+ {% endif %} + + {% endfor %} +No Chains found.
+{% endif %} + +{% endblock %} diff --git a/src/backoffice/templates/credebtor_detail_backoffice.html b/src/backoffice/templates/credebtor_detail_backoffice.html new file mode 100644 index 00000000..bf4f7f16 --- /dev/null +++ b/src/backoffice/templates/credebtor_detail_backoffice.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} +{% load bootstrap3 %} + +{% block content %} +Use this view to see the Chains and Credebtors registered in the system.
+Use this view to see and approve/reject expenses.
diff --git a/src/backoffice/urls.py b/src/backoffice/urls.py index ae7ea6e3..5bf4a7e3 100644 --- a/src/backoffice/urls.py +++ b/src/backoffice/urls.py @@ -32,6 +32,31 @@ urlpatterns = [ # economy path('economy/', include([ + # chains & credebtors + path('chains/', + include([ + path( + '', + ChainListView.as_view(), + name='chain_list' + ), + path('