This is my fork with additional features:
- twitter_bootstrap is a django app now, makes it uneccessary to copy templates manually
- added custom renderer that adds inputs-list class to radio fields
Contributed templates for Daniel Greenfeld and Miguel Araujo's awesome django-uni-form library. Template sets are named for the library they relate to.
Install:
pip install -e git://github.com/bmihelac/django-uni-form-contrib.git@next#egg=uni_form_contrib
Add uni_form_contrib.twitter_bootstrap
application to INSTALLED_APPS
in
settings.py before uni_form
so django will pick this templates instead
of default uni_form
templates.
For list of options, Bootstrap expect list tag to have a inputs-list class.
BootstrapRadioFieldRenderer
makes it easy to add css class::
from uni_form_contrib.twitter_bootstrap.widgets import BootstrapRadioFieldRenderer field = forms.ChoiceField(label=_('field'), choices=FIELD_CHOICES, widget=forms.widgets.RadioSelect(renderer=BootstrapRadioFieldRenderer) )
Current contributors are:
All templates are released under the MIT license.