{% extends "budget/base.html" %}

{% block title %}
Category Balance
{% endblock %}

{% block content %}
<form action="" method="get">
  {% include "budget/form_snippet.html" %}
  <button type="submit" class="btn btn-primary">Submit</button>
</form>

<table class="table table-bordered text-center mt-1">
  <thead class="thead-light">
    <tr>
      <th>Category</th>
      <th>Balance</th>
    </tr>
  </thead>
  <tbody>
    {% for key, value in balance.items %}
    <tr>
      <td>{{ key }}</td>
      <td>{{ value }}</td>
    </tr>
    {% endfor %}
  </tbody>
</table>
{% endblock %}
{% extends "budget/base.html" %}

{% block title %}
Category Balance
{% endblock %}

{% block content %}
<form action="" method="get">
  {% include "budget/form_snippet.html" %}
  <button type="submit" class="btn btn-primary">Submit</button>
</form>

<table class="table table-bordered text-center mt-1">
  <thead class="thead-light">
    <tr>
      <th>Category</th>
      <th>Balance</th>
    </tr>
  </thead>
  <tbody>
    {% for key, value in balance.items %}
    <tr>
      <td>{{ key }}</td>
      <td>{{ value|floatformat:2 }}</td>
    </tr>
    {% endfor %}
  </tbody>
</table>
{% endblock %}
Format money in category balance report
Format money in category balance report
