From 11052951b74b9ad4b6a9412ae490086235f9154b Mon Sep 17 00:00:00 2001
From: Joris
Date: Sun, 3 Jan 2021 13:40:40 +0100
Subject: Rewrite in Rust
---
templates/balance.html | 107 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 107 insertions(+)
create mode 100644 templates/balance.html
(limited to 'templates/balance.html')
diff --git a/templates/balance.html b/templates/balance.html
new file mode 100644
index 0000000..15da854
--- /dev/null
+++ b/templates/balance.html
@@ -0,0 +1,107 @@
+{% extends "base.html" %}
+
+{% block title %}
+ Équilibre
+{% endblock title %}
+
+{% block main %}
+
+
+ {% if exceeding_payers %}
+
+ {% for exceeding_payer in exceeding_payers %}
+ -
+ {{ exceeding_payer.0 }} : +{{ exceeding_payer.1 | euros() }}
+
+ {% endfor %}
+
+ {% else %}
+
+ Les paiements sont équilibrés.
+
+ {% endif %}
+
+ {% if incomes_from %}
+
+ Revenus
+
+
+
+
+ {% for user_income in user_incomes %}
+
+
+ {{ user_income.0 }}
+
+
+ {{ user_income.1 | euros() }}
+
+
+ {% if total_income > 0 %}
+ {{ user_income.1 / total_income * 100 | round() }} %
+ {% else %}
+ –
+ {% endif %}
+
+
+ {% endfor %}
+
+
+ Total
+
+
+ {{ total_income | euros() }}
+
+
+ 100 %
+
+
+
+ {% endif %}
+
+
+ Paiements
+
+
+
+
+ {% for user_payment in user_payments %}
+
+
+ {{ user_payment.0 }}
+
+
+ {{ user_payment.1 | euros() }}
+
+
+ {% if total_payments > 0 %}
+ {{ user_payment.1 / total_payments * 100 | round() }} %
+ {% else %}
+ –
+ {% endif %}
+
+
+ {% endfor %}
+
+
+ Total
+
+
+ {{ total_payments | euros() }}
+
+
+ 100 %
+
+
+
+
+
+{% endblock main %}
--
cgit v1.2.3