Compensation index view

* adds filters and table optimizations for compensation index rendering
* fixes recorded_by/checked_by confusion in intervention table
This commit is contained in:
mipel
2021-07-29 10:51:14 +02:00
parent 3eb594c1b5
commit 98e0971c4b
5 changed files with 161 additions and 27 deletions

View File

@@ -134,8 +134,8 @@ class InterventionTable(BaseTable):
tooltip = _("Not registered yet")
if checked:
value = localtime(value)
checked_on = value.strftime(DEFAULT_DATE_TIME_FORMAT)
tooltip = _("Registered on {} by {}").format(checked_on, record.checked_by)
on = value.strftime(DEFAULT_DATE_TIME_FORMAT)
tooltip = _("Registered on {} by {}").format(on, record.recorded_by)
html += self.render_bookmark(
tooltip=tooltip,
icn_filled=checked,