#7 New Form
* adds NewEcoAccountForm * refactors NewCompensationForm into AbstractCompensationForm so main fields can be reused again * fixes template bug in account detail view where the amount of deductions has been displayed instead of the available rest * refactors _generate_new_identifier() into generate_new_identifier() * refactors get_available_rest() into returning both, the total and relative amount * improves saving of SimpleGeometryForm() * adds/updates translations
This commit is contained in:
@@ -239,8 +239,8 @@ class EcoAccountTable(BaseTable):
|
||||
Returns:
|
||||
|
||||
"""
|
||||
value = record.get_available_rest(as_percentage=True)
|
||||
html = render_to_string("konova/custom_widgets/progressbar.html", {"value": value})
|
||||
value_total, value_relative = record.get_available_rest()
|
||||
html = render_to_string("konova/custom_widgets/progressbar.html", {"value": value_relative})
|
||||
return format_html(html)
|
||||
|
||||
def render_r(self, value, record: EcoAccount):
|
||||
|
||||
Reference in New Issue
Block a user