I’m working with Django and bootstrap and would like to add the html tag using bootstrap Icon glyphs, as I failed to do, is like adding attributes to the widgets, but I failed to add the label or, say to directly customize.
This is what leads me Django:
<p><label for="id_fecha">Fecha:</label> <input type="text" name="fecha" id="id_fecha" /></p>
This is what I want:
<input class="datepicker" type="text" name="fecha" id="id_fecha" /><span class="add-on"><i class="icon-th"></i></span>
I appreciate your help
If you have simple template that build form, cleanest way here is to add additional tags by JavaScript. If you are using JQuery, you can use .after method:
It saves your template simple.