-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
django>=1.4 | ||
django-crispy-forms>=1.2.3 | ||
django-crispy-forms>=1.4.0 |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,36 @@ | ||
{% load crispy_forms_field %} | ||
|
||
{% if field.is_hidden %} | ||
{{ field }} | ||
{{ field }} | ||
{% else %} | ||
<div id="div_{{ field.auto_id }}" class="form-group row{% if wrapper_class %} {{ wrapper_class }}{% endif %}{% if form_show_errors%}{% if field.errors %} has-error{% endif %}{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}"> | ||
|
||
{% if field.label and not field|is_checkbox %} | ||
<label for="{{ field.id_for_label }}" class="control-label"> | ||
{{ field.label|safe }}{% if field.field.required %}<span class="asterisk_field">*</span>{% endif %} | ||
</label> | ||
{% endif %} | ||
<{% if tag %}{{ tag }}{% else %}div{% endif %} id="div_{{ field.auto_id }}" class="form-group{% if wrapper_class %} {{ wrapper_class }}{% endif %}{% if form_show_errors%}{% if field.errors %} has-error{% endif %}{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}"> | ||
{% if field.label and not field|is_checkbox and form_show_labels %} | ||
<label for="{{ field.id_for_label }}" class="control-label {{ label_class }}{% if field.field.required %} requiredField{% endif %}"> | ||
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %} | ||
</label> | ||
{% endif %} | ||
|
||
{% if field|css_class == "checkboxselectmultiple" %} | ||
{% if field|is_checkboxselectmultiple %} | ||
{% include 'bootstrap3/layout/checkboxselectmultiple.html' %} | ||
{% endif %} | ||
|
||
{% if field|css_class == "radioselect" %} | ||
{% if field|is_radioselect %} | ||
{% include 'bootstrap3/layout/radioselect.html' %} | ||
{% endif %} | ||
|
||
{% if field|css_class != "checkboxselectmultiple" and field|css_class != "radioselect" %} | ||
<div class="controls clearfix"> | ||
{% if not field|is_checkboxselectmultiple and not field|is_radioselect %} | ||
<div class="controls {{ field_class }}"> | ||
{% if field|is_checkbox %} | ||
<label for="{{ field.id_for_label }}" class="checkbox {% if field.field.required %}requiredField{% endif %}"> | ||
<label for="{{ field.id_for_label }}" class="checkbox {% if field.field.required %} requiredField{% endif %}"> | ||
{% crispy_field field %} | ||
{{ field.label|safe }} | ||
{% include 'bootstrap3/layout/help_text_and_errors.html' %} | ||
</label> | ||
{% else %} | ||
{% block normal_field %} | ||
{% crispy_field field %} | ||
{% endblock normal_field %} | ||
{% include 'bootstrap3/layout/help_text_and_errors.html' %} | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</{% if tag %}{{ tag }}{% else %}div{% endif %}> | ||
{% endif %} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.