djangosnippets.org: Latest snippets tagged with 'append-input'https://djangosnippets.org/tags/append-input/2012-09-26T06:07:44.822288-05:00boostrap append-input for widgets
2012-09-26T06:07:44.822288-05:00DimmuRhttps://djangosnippets.org/snippets/2827/<p>Append span with text, image or other data to any django widget so bootstrap can format it like in <a href="http://twitter.github.com/bootstrap/base-css.html#forms">here</a> (scroll to "Extending form controls" section)</p>
<p>Example usage:</p>
<p><code>example_field = CharField(
max_length=255, min_length=1,
label='Label', required=False,
widget=AppendWidget(base_widget=TextInput, data='@')
)</code></p>
Freely redistributable