{% extends 'base.html' %}

{% block content %}
  <h1>Chart of Accounts</h1>
  <table>
    <thead>
      <tr>
        <th>Number</th>
        <th>Name</th>
        <th>Type</th>
        <th>Balance</th>
      </tr>
    </thead>
    <tbody>
      {% for account in accounts %}
        <tr>
          <td>{{ account.number }}</td>
          <td>{{ account.name }}</td>
          <td>{{ account.get_type_display }}</td>
          <td>{{ account.balance }}</td>
        </tr>
      {% endfor %}
    </tbody>
  </table>
{% endblock %}
