Document upload

* adds document upload form
* refactors modal form templates into form classes
* adds document upload route to intervention routes of urls.py
This commit is contained in:
mipel
2021-07-26 15:16:16 +02:00
parent d1db559f33
commit 955784fc45
10 changed files with 106 additions and 41 deletions

View File

@@ -5,7 +5,7 @@
{% endcomment %}
<form method="post" action="{{form.action_url}}">
<form method="post" action="{{form.action_url}}" {% for attr_key, attr_val in form.form_attrs.items %} {{attr_key}}="{{attr_val}}"{% endfor %}>
{% csrf_token %}
<div class="modal-header">
<h5 class="modal-title">{{form.form_title}}</h5>

View File

@@ -14,7 +14,7 @@
{{ form.form_caption }}
</small>
{% endif %}
<form method="post" action="{{ form.action_url }}">
<form method="post" action="{{ form.action_url }}" {% for attr_key, attr_val in form.form_attrs.items %} {{attr_key}}="{{attr_val}}"{% endfor %}>
{% csrf_token %}
{% include 'table/generic_table_form_body.html' %}
<div class="row">