dyve/django-bootstrap-toolkit — pull request #32 by vitorhirota (2012-09-10 17:45:17+00:00)
Title: Base BootstrapInput widget, time picker and date time split input

- added time picker from https://github.com/jdewit/bootstrap-timepicker
- added BootstrapDateTimeInput
- also included a base BootstrapInput, wich accepts as an argument, values for append/prepend.

The current implementation for append/prepend in the template could not render properly a MultiWidget.
The BootstrapInput takes an argument on **\_\_init\_\_** and render the proper html needed, which also decreases the cyclomatic complexity on the template.

widgets = {
'field': BootstrapInput(
bootstrap_attrs={
'append': ''
'prepend': 'text to prepend'
}),
}