From 2e0a6909cbfb2479edd7fba78fa4d0135a79ae3f Mon Sep 17 00:00:00 2001 From: Benedict Börger Date: Sat, 23 Mar 2019 15:40:35 +0100 Subject: [global] refactoring code base --- templates/transaction.html.tera | 119 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 templates/transaction.html.tera (limited to 'templates/transaction.html.tera') diff --git a/templates/transaction.html.tera b/templates/transaction.html.tera new file mode 100644 index 0000000..a1fe899 --- /dev/null +++ b/templates/transaction.html.tera @@ -0,0 +1,119 @@ + + + + + + + + + Transaction Overview for account {{ account_name }} + + + + +
+
+
+ {% if filter == "" %} + + {% else %} + + {% endif %} + +
+ +
+
+
to + +
+
+

Transactions {{ account_name }}

+
+
+ + + + + + + + + + + {% set amount_sum = 0 %} + {% for transaction in transactions %} + + + + + {% if transaction.amount >= 0 %} + + {% else %} + + {% endif %} + + {% set_global amount_sum = amount_sum + transaction.amount %} + {% endfor %} + + + + + {% if amount_sum >= 0 %} + + {% else %} + + {% endif %} + + +
SenderReferenceDateAmount
{{ transaction.sender_name }}{{ transaction.reference | truncate(length=40) }}{{ transaction.date }}{{ transaction.amount | round(method="common", precision=2) }}{{ transaction.amount | round(method="common", precision=2) }}
{{ amount_sum | round(method="common", precision=2) }}{{ amount_sum | round(method="common", precision=2) }}
+
+
+
+ + + + + + -- cgit v1.2.3-70-g09d2