Ajout modèle ChantDoc
This commit is contained in:
parent
c7a08b3d3c
commit
c37c52cb5d
16 changed files with 112 additions and 7 deletions
|
|
@ -3,8 +3,19 @@
|
|||
{% block content %}
|
||||
<h2>Édition/ajout de chant</h2>
|
||||
|
||||
<form method="post">{% csrf_token %}
|
||||
<form method="post" enctype="multipart/form-data">{% csrf_token %}
|
||||
{{ form.as_div }}
|
||||
{% if form.formset %}
|
||||
<h4 class="mt-3">Fichiers joints à ce chant</h4>
|
||||
{{ form.formset.management_form }}
|
||||
{% for subform in form.formset %}
|
||||
<div class="card text-bg-secondary mt-2">
|
||||
<div class="card-body">
|
||||
{{ subform }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<div class="mt-3"><button type="submit" class="btn btn-primary">Enregistrer</button></div>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue