From df19c5586d2d6c46f29fec7c86d48b398b6357c2 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Thu, 20 Apr 2023 12:03:30 +0200 Subject: [PATCH] Change save button to create on creation form --- nummi/main/locale/fr/LC_MESSAGES/django.po | 8 ++++++-- nummi/main/templates/main/form/form_base.html | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/nummi/main/locale/fr/LC_MESSAGES/django.po b/nummi/main/locale/fr/LC_MESSAGES/django.po index 15a6d59..d621743 100644 --- a/nummi/main/locale/fr/LC_MESSAGES/django.po +++ b/nummi/main/locale/fr/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-04-20 12:00+0200\n" +"POT-Creation-Date: 2023-04-20 12:02+0200\n" "PO-Revision-Date: 2022-12-21 17:30+0100\n" "Last-Translator: edpibu \n" "Language-Team: edpibu \n" @@ -231,7 +231,11 @@ msgstr "Supprimer" msgid "Reset" msgstr "Réinitialiser" -#: .\templates\main\form\form_base.html:32 +#: .\templates\main\form\form_base.html:33 +msgid "Create" +msgstr "Créer" + +#: .\templates\main\form\form_base.html:35 msgid "Save" msgstr "Enregistrer" diff --git a/nummi/main/templates/main/form/form_base.html b/nummi/main/templates/main/form/form_base.html index edb30f4..5a76aba 100644 --- a/nummi/main/templates/main/form/form_base.html +++ b/nummi/main/templates/main/form/form_base.html @@ -29,7 +29,11 @@ {% translate "Delete" %} {% endif %} - + {% if form.instance.adding %} + + {% else %} + + {% endif %} {% endblock %}