Skip to content

Commit

Permalink
Add our own non-crispy template for fieldset
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed Sep 27, 2024
1 parent 21904e0 commit c695131
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<fieldset
{% if field.css_class %} class="{{ field.css_class }}" {% endif %}
>
{% if field.legend %}
<legend>{{ field.legend }}</legend>{% endif %}
{% block fieldset_fields %}
{% for field in field.fields %}
{% include 'custom_crispy_templates/_form_field.html' %}
{% endfor %}
{% endblock %}
</fieldset>

0 comments on commit c695131

Please sign in to comment.