small form fixes

le `display:block` avait disparu des helptext, ce qui rendait leur affichage bizarre. Et il manquait quelques détails sur le `ProductForm`
This commit is contained in:
imperosol
2025-01-05 15:40:41 +01:00
parent ada74a3e42
commit 348ab19ac6
4 changed files with 20 additions and 7 deletions

View File

@ -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,