From a57e9f57b118625f1e4bd1f3b123c59dcec2c8e4 Mon Sep 17 00:00:00 2001 From: Laurens Weijs Date: Tue, 17 Dec 2024 16:39:39 +0100 Subject: [PATCH] pre-commit fixes --- amt/api/forms/measure.py | 4 +++- amt/locale/base.pot | 6 +++--- amt/locale/en_US/LC_MESSAGES/messages.po | 7 ++----- amt/locale/nl_NL/LC_MESSAGES/messages.po | 4 ++-- .../algorithms/details_measure_modal.html.j2 | 9 ++++----- amt/site/templates/macros/form_macros.html.j2 | 19 ++++--------------- 6 files changed, 18 insertions(+), 31 deletions(-) diff --git a/amt/api/forms/measure.py b/amt/api/forms/measure.py index 0b7dcf83..5de7cc7a 100644 --- a/amt/api/forms/measure.py +++ b/amt/api/forms/measure.py @@ -36,7 +36,9 @@ async def get_measure_form( WebFormField( type=WebFormFieldType.FILE, name="measure_files", - description=_("Select one or more to upload. The files will be saved once you confirm changes by pressing the save button."), + description=_( + "Select one or more to upload. The files will be saved once you confirm changes by pressing the save button." + ), default_value=current_values.get("measure_files"), label=_("Add files"), placeholder=_("No files selected."), diff --git a/amt/locale/base.pot b/amt/locale/base.pot index 1d4904fd..86538fe1 100644 --- a/amt/locale/base.pot +++ b/amt/locale/base.pot @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-12-17 11:48+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"POT-Creation-Date: 0001-01-01 00:00+0000\n" +"PO-Revision-Date: 0001-01-01 00:00+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.16.0\n" +"Generated-By: Babel 2.15.0\n" #: amt/api/ai_act_profile.py:24 msgid "Type" diff --git a/amt/locale/en_US/LC_MESSAGES/messages.po b/amt/locale/en_US/LC_MESSAGES/messages.po index bbbe3a01..1e8fecc3 100644 --- a/amt/locale/en_US/LC_MESSAGES/messages.po +++ b/amt/locale/en_US/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-12-17 11:48+0100\n" +"POT-Creation-Date: 0001-01-01 00:00+0000\n" "PO-Revision-Date: 0001-01-01 00:00+0000\n" "Last-Translator: FULL NAME \n" "Language: en_US\n" @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.16.0\n" +"Generated-By: Babel 2.15.0\n" #: amt/api/ai_act_profile.py:24 msgid "Type" @@ -924,6 +924,3 @@ msgid "" " open manner." msgstr "" -#~ msgid "Saved files" -#~ msgstr "" - diff --git a/amt/locale/nl_NL/LC_MESSAGES/messages.po b/amt/locale/nl_NL/LC_MESSAGES/messages.po index f42ae693..7fb11a37 100644 --- a/amt/locale/nl_NL/LC_MESSAGES/messages.po +++ b/amt/locale/nl_NL/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-12-17 11:48+0100\n" +"POT-Creation-Date: 0001-01-01 00:00+0000\n" "PO-Revision-Date: 0001-01-01 00:00+0000\n" "Last-Translator: FULL NAME \n" "Language: nl_NL\n" @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.16.0\n" +"Generated-By: Babel 2.15.0\n" #: amt/api/ai_act_profile.py:24 msgid "Type" diff --git a/amt/site/templates/algorithms/details_measure_modal.html.j2 b/amt/site/templates/algorithms/details_measure_modal.html.j2 index f50ef367..4f9a7673 100644 --- a/amt/site/templates/algorithms/details_measure_modal.html.j2 +++ b/amt/site/templates/algorithms/details_measure_modal.html.j2 @@ -1,11 +1,10 @@ {% import "macros/form_macros.html.j2" as macros with context %}
-

{{ measure.name }}

+

{{ measure.name }}

+

diff --git a/amt/site/templates/macros/form_macros.html.j2 b/amt/site/templates/macros/form_macros.html.j2 index 1f226c40..1f013897 100644 --- a/amt/site/templates/macros/form_macros.html.j2 +++ b/amt/site/templates/macros/form_macros.html.j2 @@ -145,7 +145,7 @@ style="overflow-x: hidden; min-height: 240px; height: auto; - width: auto";> + width: auto">