{#
SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

{% extends "base.html" %}
{% block title %}{% block page_title %}Item Class List{% endblock %} – {{ branding }}{% endblock %}
{% block page_actions %}
<a class="btn btn-primary" href="/item-classes/add">Add</a>
{% endblock %}
{% block main %}
<table class="table">
  <thead>
    <tr>
      <th>Name</th>
      <th>Type</th>
    </tr>
  </thead>
  <tbody>
    {% for item_class in item_classes -%}
    <tr>
      <td><a href="/item-class/{{ item_class.id }}">{{ item_class.name }}</a></td>
      <td>{{ item_class.type }}</td>
    </tr>
    {% endfor -%}
  </tbody>
</table>
{% endblock %}