Skip to content

Commit

Permalink
feat: changeform blocks (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Aug 13, 2024
1 parent b4773ed commit 5b9d844
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unfold/templates/admin/change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@

{% block content %}
<div id="content-main">
{% block form_before %}{% endblock %}

<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}{% if form_url %}action="{{ form_url }}" {% endif %}method="post" id="{{ opts.model_name }}_form" {% if adminform.model_admin.warn_unsaved_form %}class="warn-unsaved-form"{% endif %} novalidate>
{% csrf_token %}

Expand Down Expand Up @@ -106,5 +108,7 @@
{% prepopulated_fields_js %}
</div>
</form>

{% block form_after %}{% endblock %}
</div>
{% endblock %}

0 comments on commit 5b9d844

Please sign in to comment.