{% macro label_field(label) -%} {% for error in label.errors %} {{ error }} {% endfor %} {{ label.label }} {{ label() }} {%- endmacro %} {% macro expense_table(data, total) -%} {% for row in data %} {% endfor %}
Date Category Description Amount
Edit {{ row.category.name }} {{ row.description }} {{ "%.2f"|format(row.amount) }}
Overall {{ "%.2f"|format(total) }}
{%- endmacro %}