Support file upload in AsyncFormView and subevent editor

This commit is contained in:
Raphael Michel
2023-10-16 17:59:32 +02:00
parent abda800953
commit 4d75c568b5
3 changed files with 46 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
{% block title %}{% trans "Date" context "subevent" %}{% endblock %}
{% block content %}
<h1>{% trans "Create multiple dates" context "subevent" %}</h1>
<form action="" method="post" class="form-horizontal" id="subevent-bulk-create-form" data-asynctask>
<form action="" method="post" class="form-horizontal" id="subevent-bulk-create-form" data-asynctask enctype="multipart/form-data">
{% csrf_token %}
{% bootstrap_form_errors form %}
{% for f in itemvar_forms %}

View File

@@ -11,7 +11,7 @@
{% else %}
<h1>{% trans "Date" context "subevent" %}</h1>
{% endif %}
<form action="" method="post" class="form-horizontal">
<form action="" method="post" class="form-horizontal" enctype="multipart/form-datai">
{% csrf_token %}
{% bootstrap_form_errors form %}
{% for f in itemvar_forms %}