filter students
This commit is contained in:
22
crispy_forms/templates/bootstrap4/betterform.html
Normal file
22
crispy_forms/templates/bootstrap4/betterform.html
Normal file
@ -0,0 +1,22 @@
|
||||
{% for fieldset in form.fieldsets %}
|
||||
<fieldset class="fieldset-{{ forloop.counter }} {{ fieldset.classes }}">
|
||||
{% if fieldset.legend %}
|
||||
<legend>{{ fieldset.legend }}</legend>
|
||||
{% endif %}
|
||||
|
||||
{% if fieldset.description %}
|
||||
<p class="description">{{ fieldset.description }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% for field in fieldset %}
|
||||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
{% include "bootstrap4/field.html" %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if not forloop.last or not fieldset_open %}
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user