1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-24 01:36:47 +02:00

add table, add some translation

This commit is contained in:
quark
2025-03-13 21:01:50 +01:00
parent bd9773a8af
commit bd7e6b8ad4
4 changed files with 83 additions and 51 deletions

View File

@ -1,6 +1,6 @@
{% extends "wrapped/1/wrapped_base.html" %}
{% comment %}
COPYRIGHT (C) 2018-2024 BDE ENS Paris-Saclay
COPYRIGHT (C) 2018-2025 BDE ENS Paris-Saclay
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load i18n pretty_money %}
@ -23,9 +23,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
let d1 = document.getElementById("consumer");
let d2 = document.getElementById("creditor");
if (con) { d1.textContent = {{ big_consumer | safe }}[0] + " " + gettext("with") + " " + {{ big_consumer | safe}}[1] + "€";}
else { d1.textContent = gettext("Infortunately, you doesn't have consumer this year");};
else { d1.textContent = gettext({% trans "Infortunately, you doesn't have consumer this year" %});};
if (cre) { d2.textContent = {{ big_creancier | safe}}[0] + " " + gettext("with") + " " + {{ big_creancier | safe}}[1] + "€";}
else { d2.textContent = gettext("Congratulations you are a real rat !"); };
else { d2.textContent = gettext({% trans "Congratulations you are a real rat !" %}); };
</script>
{% endblock %}