-
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
Showing
1 changed file
with
23 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
{% extends "admin/base.html" %} | ||
{% load i18n %} | ||
{% load django-bootstrap5 %} | ||
{% load django_bootstrap5 %} | ||
|
||
{% block title %}{% endblock %} | ||
{% block content_title %}{% endblock %} | ||
{% block content %} | ||
<form method="post"> | ||
{% csrf_token %} | ||
{{ formset.management_form }} | ||
{{ formset.non_form_errors.as_ul }} | ||
<h4>{% block object_name %}{% endblock %}</h4> | ||
<div id="sortable" class="mb-3"> | ||
{% for form in formset.forms %} | ||
<div> | ||
{% for hidden in form.hidden_fields %} | ||
{{ hidden }} | ||
<form method="post"> | ||
{% csrf_token %} | ||
{{ formset.management_form }} | ||
{{ formset.non_form_errors.as_ul }} | ||
<h4>{% block object_name %}{% endblock %}</h4> | ||
<div id="sortable" class="mb-3"> | ||
{% for form in formset.forms %} | ||
<div> | ||
{% for hidden in form.hidden_fields %} | ||
{{ hidden }} | ||
{% endfor %} | ||
{% for field in form.visible_fields %} | ||
{% bootstrap_field field layout="horizontal" show_label=False size="sm" %} | ||
{% endfor %} | ||
<hr> | ||
</div> | ||
{% endfor %} | ||
{% for field in form.visible_fields %} | ||
{% bootstrap_field field layout="horizontal" show_label=False size="sm"%} | ||
{% endfor %} | ||
<hr> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
<hr> | ||
<h4>{% block target %}{% endblock %}</h4> | ||
{% bootstrap_form form %} | ||
{% bootstrap_button _("Submit") button_type="submit" %} | ||
</form> | ||
{{ form.media }} | ||
<hr> | ||
<h4>{% block target %}{% endblock %}</h4> | ||
{% bootstrap_form form %} | ||
{% bootstrap_button _("Submit") button_type="submit" %} | ||
</form> | ||
{{ form.media }} | ||
{% endblock %} |