Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Erik Evenson ErikEvenson

🎯
Focusing
Block or report user

Report or block ErikEvenson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.