forked from CGM_Public/pretix_original
Footer link form: Add placeholder (Z#23217115)
This commit is contained in:
@@ -1958,6 +1958,13 @@ class EventFooterLinkForm(I18nModelForm):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = EventFooterLink
|
model = EventFooterLink
|
||||||
fields = ('label', 'url')
|
fields = ('label', 'url')
|
||||||
|
widgets = {
|
||||||
|
"url": forms.URLInput(
|
||||||
|
attrs={
|
||||||
|
"placeholder": "https://..."
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class BaseEventFooterLinkFormSet(I18nFormSetMixin, forms.BaseInlineFormSet):
|
class BaseEventFooterLinkFormSet(I18nFormSetMixin, forms.BaseInlineFormSet):
|
||||||
|
|||||||
@@ -1024,6 +1024,13 @@ class OrganizerFooterLinkForm(I18nModelForm):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = OrganizerFooterLink
|
model = OrganizerFooterLink
|
||||||
fields = ('label', 'url')
|
fields = ('label', 'url')
|
||||||
|
widgets = {
|
||||||
|
"url": forms.URLInput(
|
||||||
|
attrs={
|
||||||
|
"placeholder": "https://..."
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class BaseOrganizerFooterLinkFormSet(I18nFormSetMixin, forms.BaseInlineFormSet):
|
class BaseOrganizerFooterLinkFormSet(I18nFormSetMixin, forms.BaseInlineFormSet):
|
||||||
|
|||||||
Reference in New Issue
Block a user