f8b3e5c8fd
* adds functionality for withdraws from eco accounts in detail view of interventions and eco account as well * adds get_surface() method to AbstractCompensation class to provide a simple getter for a sql calculation * adds get_surface_withdraws() method to EcoAccount class to provide a simple getter for a sql calculation * renames some routes to match coherent rout naming * adds logic check on NewWithdrawForm * renames templates/table directory to templates/form, since there are form-table templates inside --> more clarity * adds new autocomplete routes to konova/urls.py for Interventions and EcoAccounts * adds/updates translations * adds/updates template comments * updates requirements.txt
28 lines
985 B
HTML
28 lines
985 B
HTML
{% load i18n l10n bootstrap4 %}
|
|
{% 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}}" {% 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>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<article>
|
|
{{ form.form_caption }}
|
|
</article>
|
|
{% include 'form/generic_table_form_body.html' %}
|
|
</div>
|
|
{% if form.render_submit %}
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn btn-default">{% trans 'Continue' %}</button>
|
|
</div>
|
|
{% endif %}
|
|
</form> |