{% extends "base.html" %} {% block title %}Budgets{% endblock %} {% block page_title %}Budgets{% endblock %} {% block extra_css %} .progress-bar-budget { height: 8px; border-radius: 4px; background: #f1f5f9; overflow: hidden; } .progress-bar-fill { height: 100%; border-radius: 4px; transition: width .6s ease; } .budget-over { background: #fee2e2; border-color: #fca5a5 !important; } {% endblock %} {% block topbar_actions %} Add Budget {% endblock %} {% block content %}
{{ month_label }}
{% if total_budget > 0 %}
Total Budget {{ total_spent | currency }} / {{ total_budget | currency }}
{{ overall_pct }}% used {{ (total_budget - total_spent) | currency }} {% if total_budget - total_spent >= 0 %}remaining{% else %}over{% endif %}
{% endif %} {% if summary %}
{% for item in summary %} {% endfor %}
Category Spent Limit Progress Remaining Actions
{% if item.category %}
{{ item.category.name }} {% endif %} {% if not item.has_budget %} no budget {% endif %} {% if item.budget and item.budget.rollover_amount and item.budget.rollover_amount > 0 %} +rollover {% endif %}
{{ item.spent | currency }} {% if item.limit is not none %} {{ item.limit | currency }} {% else %} {% endif %} {% if item.pct is not none %}
{{ item.pct }}% {% else %} {% endif %}
{% if item.remaining is not none %} {{ item.remaining | currency }} {% endif %} {% if item.budget %} Edit
{% else %} Set Budget {% endif %}
{% else %}
No budgets for {{ month_label }}

Set spending limits per category to track your budget.

Set First Budget {% set prev_year, prev_mo = prev_month.split('-') %}
{% endif %} {% endblock %}