mirror of
https://github.com/pretix/pretix.git
synced 2026-08-28 13:34:40 +00:00
FormFields: remove placeholders duplicating labels (#5135)
This commit is contained in:
@@ -176,7 +176,6 @@ class AutoCheckinRuleForm(forms.ModelForm):
|
||||
"organizer": self.event.organizer.slug,
|
||||
},
|
||||
),
|
||||
"data-placeholder": _("Check-in list"),
|
||||
}
|
||||
)
|
||||
self.fields["list"].widget.choices = self.fields["list"].choices
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@
|
||||
{% load ibanformat %}
|
||||
{% load bootstrap3 %}
|
||||
|
||||
{% bootstrap_field form.payer layout="inline" %}
|
||||
{% bootstrap_field form.iban layout="inline" %}
|
||||
{% bootstrap_field form.bic layout="inline" %}
|
||||
{% bootstrap_field form.payer layout="inline" placeholder=_("Account holder") %}
|
||||
{% bootstrap_field form.iban layout="inline" placeholder=_("IBAN") %}
|
||||
{% bootstrap_field form.bic layout="inline" placeholder=_("BIC (optional)") %}
|
||||
{% bootstrap_form_errors form error_types="all" %}
|
||||
|
||||
@@ -279,7 +279,6 @@ class OrderMailForm(BaseMailForm):
|
||||
'event': event.slug,
|
||||
'organizer': event.organizer.slug,
|
||||
}),
|
||||
'data-placeholder': pgettext_lazy('subevent', 'Date')
|
||||
}
|
||||
)
|
||||
self.fields['subevent'].widget.choices = self.fields['subevent'].choices
|
||||
@@ -360,7 +359,6 @@ class RuleForm(FormPlaceholderMixin, I18nModelForm):
|
||||
'event': self.event.slug,
|
||||
'organizer': self.event.organizer.slug,
|
||||
}),
|
||||
'data-placeholder': pgettext_lazy('subevent', 'Date')
|
||||
}
|
||||
)
|
||||
self.fields['subevent'].widget.choices = self.fields['subevent'].choices
|
||||
|
||||
Reference in New Issue
Block a user