Skip to content

Commit

Permalink
Merge pull request #3048 from Uninett/add-custom-fieldset-template
Browse files Browse the repository at this point in the history
Add our own non-crispy template for fieldset
  • Loading branch information
podliashanyk authored Sep 30, 2024
2 parents 4f2d7f8 + c695131 commit 2dae9d3
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 2dae9d3

Please sign in to comment.