#7 New Form
* refactors/renames folders and files for generic template rendering * removes unused choiceColumnForm.html
This commit is contained in:
@@ -240,7 +240,7 @@ class EcoAccountTable(BaseTable):
|
||||
|
||||
"""
|
||||
value_total, value_relative = record.get_available_rest()
|
||||
html = render_to_string("konova/custom_widgets/progressbar.html", {"value": value_relative})
|
||||
html = render_to_string("konova/widgets/progressbar.html", {"value": value_relative})
|
||||
return format_html(html)
|
||||
|
||||
def render_r(self, value, record: EcoAccount):
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<td class="align-middle">
|
||||
{{available_total|floatformat:2}} / {{obj.deductable_surface|default_if_none:0.00|floatformat:2}} m²
|
||||
{% with available as value %}
|
||||
{% include 'konova/custom_widgets/progressbar.html' %}
|
||||
{% include 'konova/widgets/progressbar.html' %}
|
||||
{% endwith %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
{% load i18n l10n %}
|
||||
|
||||
{% block body %}
|
||||
{% include 'form/main_data_collapse_form.html' %}
|
||||
{% include 'form/collapsable/form.html' %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user