I’m hoping this already exists, but I can’t find it. I’m trying to render forms in the bootstrap 5 paradigm; i.e.
{% for field in form.visible_fields %}
<div class="row">
{{ field }}
</div>
{% endfor %}
…so I’d like to write a form.as_row
function so I don’t have to do this manually in each template. I’m assuming this is going to involve subclassing BaseForm
, has anyone got an example of this? Or, better still, a plugin that already does this.
Thanks!