Fix multientry template
This commit is contained in:
parent
e99becd89c
commit
68591b9e83
1 changed files with 8 additions and 8 deletions
|
@ -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>
|
Loading…
Reference in a new issue