mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Footer link form: Add placeholder (Z#23217115)
This commit is contained in:
@@ -1958,6 +1958,13 @@ class EventFooterLinkForm(I18nModelForm):
|
||||
class Meta:
|
||||
model = EventFooterLink
|
||||
fields = ('label', 'url')
|
||||
widgets = {
|
||||
"url": forms.URLInput(
|
||||
attrs={
|
||||
"placeholder": "https://..."
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
class BaseEventFooterLinkFormSet(I18nFormSetMixin, forms.BaseInlineFormSet):
|
||||
|
||||
@@ -1024,6 +1024,13 @@ class OrganizerFooterLinkForm(I18nModelForm):
|
||||
class Meta:
|
||||
model = OrganizerFooterLink
|
||||
fields = ('label', 'url')
|
||||
widgets = {
|
||||
"url": forms.URLInput(
|
||||
attrs={
|
||||
"placeholder": "https://..."
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
class BaseOrganizerFooterLinkFormSet(I18nFormSetMixin, forms.BaseInlineFormSet):
|
||||
|
||||
Reference in New Issue
Block a user