2021-08-10 10:42:04 +02:00
|
|
|
{% load i18n l10n bootstrap4 %}
|
2021-07-23 18:27:53 +02:00
|
|
|
{% comment %}
|
|
|
|
A generic modal form template which is based on django-bootstrap-modal-forms package
|
|
|
|
https://pypi.org/project/django-bootstrap-modal-forms/
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
|
|
|
2021-08-17 15:27:49 +02:00
|
|
|
<form method="post" action="" {% for attr_key, attr_val in form.form_attrs.items %} {{attr_key}}="{{attr_val}}"{% endfor %}>
|
2021-07-23 18:27:53 +02:00
|
|
|
{% csrf_token %}
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title">{{form.form_title}}</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
2021-07-26 11:29:05 +02:00
|
|
|
<article>
|
|
|
|
{{ form.form_caption }}
|
|
|
|
</article>
|
2021-08-10 10:42:04 +02:00
|
|
|
{% include 'form/generic_table_form_body.html' %}
|
2021-07-23 18:27:53 +02:00
|
|
|
</div>
|
2021-07-30 13:30:42 +02:00
|
|
|
{% if form.render_submit %}
|
2021-07-23 18:27:53 +02:00
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="submit" class="btn btn-default">{% trans 'Continue' %}</button>
|
|
|
|
</div>
|
2021-07-30 13:30:42 +02:00
|
|
|
{% endif %}
|
2021-07-23 18:27:53 +02:00
|
|
|
</form>
|