forked from CGM_Public/pretix_original
Checkout UX: Change select-one questions to select boxes (thanks @rixx)
This commit is contained in:
@@ -280,7 +280,8 @@ class QuestionsForm(forms.Form):
|
|||||||
queryset=q.options.all(),
|
queryset=q.options.all(),
|
||||||
label=q.question, required=q.required,
|
label=q.question, required=q.required,
|
||||||
help_text=q.help_text,
|
help_text=q.help_text,
|
||||||
widget=forms.RadioSelect,
|
widget=forms.Select,
|
||||||
|
empty_label='',
|
||||||
initial=initial.options.first() if initial else None,
|
initial=initial.options.first() if initial else None,
|
||||||
)
|
)
|
||||||
elif q.type == Question.TYPE_CHOICE_MULTIPLE:
|
elif q.type == Question.TYPE_CHOICE_MULTIPLE:
|
||||||
|
|||||||
Reference in New Issue
Block a user