mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user