We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb9021e commit d6dc906Copy full SHA for d6dc906
crispy_bootstrap5/templates/bootstrap5/layout/multifield.html
@@ -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
14
15
16
- {{ field.label }}
17
18
19
- {% if not field|is_checkbox %}
20
21
22
23
24
- </label>
25
26
27
-{% endif %}
+<div class="d-flex gap-2">
+ {{ fields_output }}
+</div>
crispy_bootstrap5/templates/bootstrap5/multifield.html
@@ -0,0 +1,5 @@
+{% load crispy_forms_field %}
+
+<div>
+ {% include 'bootstrap5/field.html' %}
0 commit comments