{% extends "django_tables2/bootstrap5.html" %} {% block table.tfoot %} {% if table.has_footer %} {% for column in table.columns %} {% if forloop.first %} {{ column.footer }} {% else %} {{ column.footer }} {% endif %} {% endfor %} {% if table.event.instructor_flat_rate != 0 %} Flat Rate {% if table.event.instructor_flat_rate is None %} {{ table.default }} {% else %} ${{ table.event.instructor_flat_rate|floatformat:2 }} {% endif %} {% endif %} Total {% if table.event.total_due_to_instructor is None %} {{ table.default }} {% else %} ${{ table.event.total_due_to_instructor|floatformat:2 }} {% endif %} {% endif %} {% endblock table.tfoot %}