update sum at bottom of page after each change

This commit is contained in:
Khaïs COLIN 2025-10-19 14:18:40 +02:00
parent 12a040fe87
commit 2bd2b95f05
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
5 changed files with 15 additions and 7 deletions

View file

@ -15,9 +15,7 @@
{% for food in foods %}
{% include "food.html" %}
{% endfor %}
<div style="background-color: lightblue; margin: 1em;">
<b style="font-size: 24px; padding: 1em;">Total: {{ sum }} kc.</b>
</div>
{% include "sum.html" %}
</div>
</main>
</body>