Skip to content

Commit

Permalink
pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensWe committed Dec 17, 2024
1 parent b9d2d42 commit a57e9f5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 31 deletions.
4 changes: 3 additions & 1 deletion amt/api/forms/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."),
Expand Down
6 changes: 3 additions & 3 deletions amt/locale/base.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\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"
Expand Down
7 changes: 2 additions & 5 deletions amt/locale/en_US/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language: en_US\n"
Expand All @@ -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"
Expand Down Expand Up @@ -924,6 +924,3 @@ msgid ""
" open manner."
msgstr ""

#~ msgid "Saved files"
#~ msgstr ""

4 changes: 2 additions & 2 deletions amt/locale/nl_NL/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language: nl_NL\n"
Expand All @@ -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"
Expand Down
9 changes: 4 additions & 5 deletions amt/site/templates/algorithms/details_measure_modal.html.j2
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{% import "macros/form_macros.html.j2" as macros with context %}
<div class="rvo-layout-column rvo-layout-gap--xl">
<div class="amt-flex-container">
<h1 class="utrecht-heading-1 rvo-heading--no-margins">{{ measure.name }}</h1> <a
onclick="amt.closeModal('measure-modal')"><span
class="utrecht-icon rvo-icon rvo-icon-kruis rvo-icon--md rvo-icon--hemelblauw"
role="img"
aria-label="Close"></span></a>
<h1 class="utrecht-heading-1 rvo-heading--no-margins">{{ measure.name }}</h1>
<a onclick="amt.closeModal('measure-modal')"><span class="utrecht-icon rvo-icon rvo-icon-kruis rvo-icon--md rvo-icon--hemelblauw"
role="img"
aria-label="Close"></span></a>
</div>
<hr class="rvo-hr" />
<div class="rvo-layout-column rvo-layout-gap--md">
Expand Down
19 changes: 4 additions & 15 deletions amt/site/templates/macros/form_macros.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
style="overflow-x: hidden;
min-height: 240px;
height: auto;
width: auto";>
width: auto">
<div class="amt-flex-container">
<h3 class="utrecht-heading-3 rvo-heading--no-margins">{% trans %}Delete file{% endtrans %}</h3>
<a onclick="amt.closeModal('delete-file-modal-{{ ulid }}')"><span class="utrecht-icon rvo-icon rvo-icon-kruis rvo-icon--md rvo-icon--hemelblauw"
Expand All @@ -155,7 +155,7 @@
<hr class="rvo-hr" />
<p style="min-height: 54%; padding-block: 0.5em 0.4em;">
{% trans %}Are you sure you want to delete{% endtrans %}
<strong> {{ file }}?</strong>
<strong>{{ file }}?</strong>
</p>
<div class="utrecht-button-group">
<button hx-headers='{"X-CSRF-Token": "{{ csrftoken }}"}'
Expand Down Expand Up @@ -230,16 +230,7 @@
{% for value in field.default_value %}
<div class="rvo-margin-block-end--md">
<div class="rvo-layout-row rvo-layout-justify-content-space-between rvo-layout-gap--md">
<input id="{{ prefix }}{{ field.name }}"
placeholder="{{ field.placeholder }}"
name="{{ field.name }}"
type="text"
class="utrecht-textbox utrecht-textbox--html-input utrecht-textbox--lg"
dir="auto"
autocomplete="off"
onchange="amt.reset_errorfield('error-{{ field.name }}')" {% if isinstance(field.attributes, "dict") %} {% for key, value in field.attributes.items() %}{{ key }}="{{ value }}"{% endfor %} {% endif %}
value="{{ value }}"
onkeydown="if (event.key === 'Enter') event.preventDefault();"/>
<input id="{{ prefix }}{{ field.name }}" placeholder="{{ field.placeholder }}" name="{{ field.name }}" type="text" class="utrecht-textbox utrecht-textbox--html-input utrecht-textbox--lg" dir="auto" autocomplete="off" onchange="amt.reset_errorfield('error-{{ field.name }}')" {% if isinstance(field.attributes, "dict") %} {% for key, value in field.attributes.items() %}{{ key }}="{{ value }}"{% endfor %} {% endif %} value="{{ value }}" onkeydown="if (event.key === 'Enter') event.preventDefault();" />
<a id="document-link-delete"
class="rvo-link rvo-link--normal rvo-link--no-underline rvo-link--with-icon"
onclick="this.parentNode.remove()">
Expand Down Expand Up @@ -267,9 +258,7 @@
<template id="{{ prefix }}{{ field.name }}-template">
<div class="rvo-margin-block-end--md">
<div class="rvo-layout-row rvo-layout-justify-content-space-between rvo-layout-gap--md">
<input placeholder="{{ field.placeholder }}"
name="{{ field.name }}"
type="text" class="utrecht-textbox utrecht-textbox--html-input utrecht-textbox--html-input utrecht-textbox--lg" dir="auto" autocomplete="off" onchange="amt.reset_errorfield('error-{{ field.name }}')" {% if isinstance(field.attributes, "dict") %} {% for key, value in field.attributes.items() %}{{ key }}="{{ value }}"{% endfor %} {% endif %} onkeydown="if (event.key === 'Enter') event.preventDefault();" />
<input placeholder="{{ field.placeholder }}" name="{{ field.name }}" type="text" class="utrecht-textbox utrecht-textbox--html-input utrecht-textbox--html-input utrecht-textbox--lg" dir="auto" autocomplete="off" onchange="amt.reset_errorfield('error-{{ field.name }}')" {% if isinstance(field.attributes, "dict") %} {% for key, value in field.attributes.items() %}{{ key }}="{{ value }}"{% endfor %} {% endif %} onkeydown="if (event.key === 'Enter') event.preventDefault();" />
<a id="document-link-delete"
class="rvo-link rvo-link--normal rvo-link--no-underline rvo-link--with-icon"
onclick="this.parentNode.remove()">
Expand Down

0 comments on commit a57e9f5

Please sign in to comment.