Fix multientry template

This commit is contained in:
Ludovic Stephan 2020-11-13 15:18:55 +01:00
parent e99becd89c
commit 68591b9e83

View file

@ -1,4 +1,4 @@
{{ formset.non_field_errors }}
{{ formset.non_field_errors }}
{{ formset.management_form }}
{% for form in formset %}
{{ form.non_field_errors }}
@ -10,16 +10,16 @@
{% for field in form.hidden_fields %}
{{field}}
{% endfor %}
<button type=button" class="remove-button"></button>
<button type=button class="remove-button"></button>
</div>
{% endfor %}
<div class="form-sub-entry-template">
{% for field in form.visible_fields %}
{{field}}
{% endfor %}
{% for field in form.hidden_fields %}
{{field}}
{% endfor %}
{% for field in formset.empty_form.visible_fields %}
{{field}}
{% endfor %}
{% for field in formset.empty_form.hidden_fields %}
{{field}}
{% endfor %}
<button type="button" class="remove-button"></button>
</div>
<button type="button" class="add-sub-entry-button">{{ new_entry_text }}</button>