EcoAccount withdraws
* 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
This commit is contained in:
@@ -14,4 +14,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% comment %}
|
||||
"Why is there a form.media call???"
|
||||
We use modal forms, right?
|
||||
And we use dal (django-autocomplete-light), right?
|
||||
In order to get these nice autocomplete (js triggered) form fields to work, we need to load form.media
|
||||
somewhere. BUT when these fields are called inside a modal form (which we use quiet often), the form.media
|
||||
can not be called properly due to some deprecated functions of jquery regarding synchronous calling.
|
||||
So, we simply call the form.media in here, in case there is any form.media to be loaded.
|
||||
{% endcomment %}
|
||||
{{ form.media }}
|
||||
|
||||
</footer>
|
||||
Reference in New Issue
Block a user