Hello all,
Is it possible to display radio buttons and label in the same line using Django forms? Below is an example:
_Choices = (
(1, 'A'),
(2, 'B'),
(3, 'C'),
)
class QuestionForm(forms.Form):
question = forms.ChoiceField(label='Please choose one!', choices=_Choices, widget=forms.RadioSelect())
How to display "Please choose one!", A, B, and C all on the same line?
Thank you!
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/97uo1h7c90IJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment