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/account.html.tera | 63 +++++++++++++++++++++ templates/balance.html.tera | 109 ++++++++++++++++++++++++++++++++++++ templates/chart.html.tera | 83 ++++++++++++++++++++++++++++ templates/transaction.html.tera | 119 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 374 insertions(+) create mode 100644 templates/account.html.tera create mode 100644 templates/balance.html.tera create mode 100644 templates/chart.html.tera create mode 100644 templates/transaction.html.tera (limited to 'templates') diff --git a/templates/account.html.tera b/templates/account.html.tera new file mode 100644 index 0000000..c1dc15e --- /dev/null +++ b/templates/account.html.tera @@ -0,0 +1,63 @@ + + + + + + + +Account Overview + + +
+

Your applications

+
+
+

Summary:

+ + + +
Balacne
Transactions this month
+
+
+ {% if false %} +
+
+

List of applications:

+ + + + + + + + + + + + {% for application in applications %} + {% if application.status == "in progress" or + application.status == "send" %} + + {% elif application.status == "rejected" %} + + {% elif application.status == "accepted" %} + + {% else %} + + {% endif %} + + + + + + + {% endfor %} + +
CompanyRoleLevelLinkStatus
{{ application.company }}{{ application.role }}{{ application.level}}{{ application.link}}{{ application.status | upper }}
+
+
+ {% endif %} +
+ + + diff --git a/templates/balance.html.tera b/templates/balance.html.tera new file mode 100644 index 0000000..13dc39d --- /dev/null +++ b/templates/balance.html.tera @@ -0,0 +1,109 @@ + + + + + + + + + Transaction Overview for account {{ account_name }} + + + + +
+

Balance {{ account_name }}

+
+
to + +
+
+
+
+ + + + + + + + + + + {% set balance_sum = 0 %} + {% for month in months %} + + + + + {% set balance = month.earned - month.spent %} + {% if balance >= 0 %} + + {% else %} + + {% endif %} + + {% set_global balance_sum = balance_sum + balance %} + {% endfor %} + + + + + {% if balance_sum >= 0 %} + + {% else %} + + {% endif %} + + +
MonthEarnedSpendBalance
{{ month.name }}{{ month.earned | round(method="common", precision=2) }}{{ month.spent | round(method="common", precision=2) }}{{ balance | round(method="common", precision=2) }}{{ balance | round(method="common", precision=2) }}
{{ balance_sum| round(method="common", precision=2) }}{{ balance_sum | round(method="common", precision=2) }}
+
+
+
+ + + + + + diff --git a/templates/chart.html.tera b/templates/chart.html.tera new file mode 100644 index 0000000..6ce1613 --- /dev/null +++ b/templates/chart.html.tera @@ -0,0 +1,83 @@ + + + + + + + + + + + Graphic Overview for account {{ account_name }} + + + + +
+

Spending Chart {{ account_name }}

+
+
to + +
+
+ +
+
+ + + + + + 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