Hi, I'm attempting to use Django forms with Twitter's CSS library Bootstrap (http://twitter.github.com/bootstrap/):
The default form outputted by {{ form.as_p }} doesn't seem to be enough to be formatted nicely with Bootstrap. You need to add a <fieldset>, as well as class="control-label" to each <label>. So for example, to output a single text field: <fieldset class="control-group"> <label class="control-label" for="input01">Text input</label> <div class="controls"> <input type="text" class="xlarge" name="input01"> <p class="help-text">Help text here. Be sure to fill this out like so, or else!</p> </div> </fieldset> Is there a way to easily get Django's form handling to produce a form like this? (I'd like to avoid hardcoding every form field in my template if possible). Cheers, Victor -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/BClad_qCrnEJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.