-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4178ff
commit afa7a26
Showing
4 changed files
with
55 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
{% extends "dsfr/formset_base.html" %} | ||
{% block formset_title %} | ||
{% if formset %} | ||
<h3 class="fr-mt-3w"> | ||
{% load static dsfr_tags widget_tweaks %} | ||
{% if formset %} | ||
<div class="formset-{{ formset.prefix }} formset-group"> | ||
{{ formset.management_form }} | ||
<h3 class="fr-mt-3w"> | ||
{{ formset_title }} | ||
</h3> | ||
{% endif %} | ||
{% endblock formset_title %} | ||
</h3> | ||
{% for form in formset %} | ||
<div class="{% cycle 'row1' 'row2' %} formset-row-{{ formset.prefix }} formset"> | ||
{% for hidden in form.hidden_fields %} | ||
{{ hidden }} | ||
{% endfor %} | ||
{% for field in form.visible_fields %} | ||
{% include "dsfr/form_field_snippets/field_snippet.html" %} | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters