Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Erik Evenson ErikEvenson

🎯
Focusing
View GitHub Profile
@ErikEvenson
ErikEvenson / field.html
Created Nov 14, 2012 — forked from gerardo/field.html
Table-based formset rendering
View field.html
{% load crispy_forms_field %}
{% if field.is_hidden %}
{{ field }}
{% else %}
<div id="div_{{ field.auto_id }}" class="clearfix control-group{% if form_show_errors%}{% if field.errors %} error{% endif %}{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}">
{% comment %}
{% if field.label and not field|is_checkbox %}
<label for="{{ field.id_for_label }}" class="control-label {% if field.field.required %}requiredField{% endif %}">
You can’t perform that action at this time.