HI
I want to align the radio buttons horizontally. By default django forms displays in vertical format.
feature_type = forms.TypedChoiceField(choices =
Modified forms.RadioSelect:
class HorizontalRadioSelect(forms.RadioSelect):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
css_style = 'style="display: inline-block; margin-right: 10px;"'
self.renderer.inner_html = '<li ' + css_style + '>{choice_value}{sub_widgets}</li>'
Working with on the Python 3.4 with the standart admin of the Django 1.10
and the Django-Suit(http://djangosuit.com/) (it use Bootstrap`s 2 styles)
Not tested for the Django-grappelli, yet.