activity: Add totals row as sticky footer to activity charts.

Updates the total row for the installation and remote activity
charts to be in the table footer. Makes the footer class sticky
to the bottom of the view so that it is always visible on the
chart.

Also, updates the installation activity column for revenue to
be formatted as a dollar string, since this formatting was being
applied in the updated total row.
This commit is contained in:
Lauryn Menard
2024-01-25 15:42:50 +01:00
committed by Tim Abbott
parent 5786a38cec
commit bfd9eec4b3
8 changed files with 50 additions and 24 deletions

View File

@@ -23,4 +23,11 @@
</tr>
{% endfor %}
</tbody>
{% if data.totals %}
<tfoot class="activity-foot">
{% for total in data.totals %}
<td>{{ total }}</td>
{% endfor %}
</tfoot>
{% endif %}
</table>

View File

@@ -121,5 +121,9 @@
</tr>
{% endfor %}
</tbody>
<tfoot class="activity-foot">
{% for total in totals %}
<td>{{ total }}</td>
{% endfor %}
</tfoot>
</table>