From 6d1300640051baa23360846197b54e1e69ae32e3 Mon Sep 17 00:00:00 2001
From: Joris Guyonvarch
Date: Sat, 18 Apr 2026 11:04:47 +0200
Subject: Add balancing capabilities
If payment are too unbalanced, it’s easier to make a transfer.
---
templates/balancing/create.html | 79 ++++++++++++++++++++++++++++++
templates/balancing/table.html | 56 +++++++++++++++++++++
templates/balancing/update.html | 105 ++++++++++++++++++++++++++++++++++++++++
templates/base.html | 10 ++++
4 files changed, 250 insertions(+)
create mode 100644 templates/balancing/create.html
create mode 100644 templates/balancing/table.html
create mode 100644 templates/balancing/update.html
(limited to 'templates')
diff --git a/templates/balancing/create.html b/templates/balancing/create.html
new file mode 100644
index 0000000..c9bfdba
--- /dev/null
+++ b/templates/balancing/create.html
@@ -0,0 +1,79 @@
+{% extends "base.html" %}
+
+{% block title %}
+ Nouvel équilibrage
+{% endblock title %}
+
+{% block main %}
+
+
+
+{% endblock main %}
diff --git a/templates/balancing/table.html b/templates/balancing/table.html
new file mode 100644
index 0000000..72f3b37
--- /dev/null
+++ b/templates/balancing/table.html
@@ -0,0 +1,56 @@
+{% import "macros/paging.html" as paging %}
+
+{% extends "base.html" %}
+
+{% block title %}
+ Équilibrages
+{% endblock title %}
+
+{% block main %}
+
+
+
+ {% if not balancings %}
+
+ Il n’y a aucun équilibrage.
+
+ {% endif %}
+
+
+ Ajouter un équilibrage
+
+
+ {% if balancings %}
+
+
+ {{ paging.view(
+ url="/balancings",
+ page=page,
+ max_page=max_page
+ ) }}
+ {% endif %}
+
+
+
+{% endblock main %}
diff --git a/templates/balancing/update.html b/templates/balancing/update.html
new file mode 100644
index 0000000..9c98e93
--- /dev/null
+++ b/templates/balancing/update.html
@@ -0,0 +1,105 @@
+{% extends "base.html" %}
+
+{% block title %}
+ Équilibrage {{ id }}
+{% endblock title %}
+
+{% block main %}
+
+
+
+
+ Retour aux équilibrages
+
+
+
+ {% if error %}
+ {{ error }}
+ {% endif %}
+
+ {% if not balancing %}
+
+ L’équilibrage n’a pas été trouvé.
+
+ {% else %}
+
+
+
+
+
+ {% endif %}
+
+
+{% endblock main %}
diff --git a/templates/base.html b/templates/base.html
index 9865e16..e6f38aa 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -51,6 +51,16 @@
Catégories
+
+