2021-07-26 11:29:05 +02:00
|
|
|
{% load i18n l10n %}
|
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 %}
|
|
|
|
|
|
|
|
|
|
|
|
<form method="post" action="{{form.action_url}}">
|
|
|
|
{% 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-07-26 10:23:09 +02:00
|
|
|
{% include 'table/generic_table_form_body.html' %}
|
2021-07-23 18:27:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="submit" class="btn btn-default">{% trans 'Continue' %}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|