extract album creation form into its own fragment

This commit is contained in:
imperosol
2025-03-29 18:19:05 +01:00
committed by Thomas Girod
parent 156305a16a
commit b83fbf91e1
6 changed files with 111 additions and 122 deletions

View File

@@ -61,23 +61,8 @@
{% if is_sas_admin %}
</form>
<br>
<form class="add-files" action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div class="inputs">
<div>
<label for="{{ form.album_name.name }}">{{ form.album_name.label }}</label>
{{ form.album_name }}
</div>
<input type="submit" value="{% trans %}Create{% endtrans %}" />
</div>
{{ form.non_field_errors() }}
{{ form.album_name.errors }}
</form>
{{ album_create_fragment }}
{% endif %}
{% endif %}
</main>