-
Notifications
You must be signed in to change notification settings - Fork 1
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
9822982
commit 938b943
Showing
2 changed files
with
41 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<table id="chipform" class="table table-striped table-sm" style="display:none;"> | ||
{{ sample_formset.management_form }} | ||
{% for form in sample_formset.forms %} | ||
{% if forloop.first %} | ||
<thead> | ||
<tr> | ||
{% for field in form.visible_fields %} | ||
<th>{{ field.label|capfirst }}</th> | ||
{% endfor %} | ||
</tr> | ||
</thead> | ||
{% endif %} | ||
<tr class="chipformset_row"> | ||
{% for field in form.visible_fields %} | ||
<td class="align-middle"> | ||
{# Include the hidden fields in the form #} | ||
{% if forloop.first %} | ||
<span class="error-message" >{{ form.non_field_errors.as_ul }}</span> | ||
{% for hidden in form.hidden_fields %} | ||
{{ hidden }} | ||
{% endfor %} | ||
{% endif %} | ||
<span class="error-message" >{{ field.errors.as_ul }}</span> | ||
|
||
{{ field }} | ||
</td> | ||
{% endfor %} | ||
</tr> | ||
{% endfor %} | ||
</table> |