Skip to content

Commit f931d54

Browse files
committed
Fix TemplateDoesNotExist when using MultiField (django-crispy-forms#75)
1 parent bb9021e commit f931d54

File tree

2 files changed

+8
-27
lines changed

2 files changed

+8
-27
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
{% load crispy_forms_field %}
2-
3-
{% if field.is_hidden %}
4-
{{ field }}
5-
{% else %}
6-
7-
{% if field.label %}
8-
<label for="{{ field.id_for_label }}"{% if labelclass %} class="{{ labelclass }}"{% endif %}>
9-
{% endif %}
10-
11-
{% if field|is_checkbox %}
12-
{% crispy_field field %}
13-
{% endif %}
14-
15-
{% if field.label %}
16-
{{ field.label }}
17-
{% endif %}
18-
19-
{% if not field|is_checkbox %}
20-
{% crispy_field field %}
21-
{% endif %}
22-
23-
{% if field.label %}
24-
</label>
25-
{% endif %}
26-
27-
{% endif %}
1+
<div class="d-flex gap-2">
2+
{{ fields_output }}
3+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% load crispy_forms_field %}
2+
3+
<div>
4+
{% include 'bootstrap5/field.html' %}
5+
</div>

0 commit comments

Comments
 (0)