How do I add different XHTML in a template for a checkbox field? I would like the following to work. I've tried to use "is_checkbox" in the example below but it doesn't work because this isn't an admin form.
{% for field in payment_form %}
<p class="{% if field.is_checkbox %}checkboxes {% endif %} ">
{% if field.is_checkbox %}
{{ field }} {{ field.label_tag }}
{% else %}
{{ field.label_tag }} {{ field }}
{% endif %}
<span class="error">{{ field.errors }}</span>
</p>
{% endfor %}