diff --git a/com/static/com/css/news-detail.scss b/com/static/com/css/news-detail.scss index 0a07e62d..c0d633fb 100644 --- a/com/static/com/css/news-detail.scss +++ b/com/static/com/css/news-detail.scss @@ -59,8 +59,3 @@ font-size: small; } } - -.helptext { - margin-top: 10px; - display: block; -} \ No newline at end of file diff --git a/core/static/core/forms.scss b/core/static/core/forms.scss index ae6f8a21..dd44aa8a 100644 --- a/core/static/core/forms.scss +++ b/core/static/core/forms.scss @@ -145,6 +145,7 @@ form { margin-top: .25rem; margin-bottom: .25rem; font-size: 80%; + display: block; } fieldset { diff --git a/counter/forms.py b/counter/forms.py index d422e9ac..59762920 100644 --- a/counter/forms.py +++ b/counter/forms.py @@ -154,6 +154,9 @@ class CounterEditForm(forms.ModelForm): class ProductEditForm(forms.ModelForm): + error_css_class = "error" + required_css_class = "required" + class Meta: model = Product fields = [ @@ -171,6 +174,12 @@ class ProductEditForm(forms.ModelForm): "tray", "archived", ] + help_texts = { + "description": _( + "Describe the product. If it's an event's click, " + "give some insights about it, like the date (including the year)." + ) + } widgets = { "product_type": AutoCompleteSelect, "buying_groups": AutoCompleteSelectMultipleGroup, diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index 3ae57bdf..8540b562 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-01-04 23:05+0100\n" +"POT-Creation-Date: 2025-01-05 15:28+0100\n" "PO-Revision-Date: 2016-07-18\n" "Last-Translator: Maréchal \n" @@ -1607,7 +1607,7 @@ msgstr "Anniversaires" msgid "%(age)s year old" msgstr "%(age)s ans" -#: com/templates/com/news_list.jinja com/tests.py +#: com/templates/com/news_list.jinja com/tests/test_views.py msgid "You need to subscribe to access this content" msgstr "Vous devez cotiser pour accéder à ce contenu" @@ -3364,6 +3364,14 @@ msgstr "Cet UID est invalide" msgid "User not found" msgstr "Utilisateur non trouvé" +#: counter/forms.py +msgid "" +"Describe the product. If it's an event's click, give some insights about it, " +"like the date (including the year)." +msgstr "" +"Décrivez le produit. Si c'est un click pour un évènement, donnez quelques détails " +"dessus, comme la date (en incluant l'année)." + #: counter/management/commands/dump_accounts.py msgid "Your AE account has been emptied" msgstr "Votre compte AE a été vidé"