2024-07-07 13:48:31 +02:00
|
|
|
|
{#
|
|
|
|
|
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>
|
2024-07-08 20:54:57 +02:00
|
|
|
|
<th>Parent</th>
|
2024-07-07 13:48:31 +02:00
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2024-07-08 20:54:57 +02:00
|
|
|
|
{% for item_class in item_classes.values() -%}
|
2024-07-07 13:48:31 +02:00
|
|
|
|
<tr>
|
2024-07-08 20:42:56 +02:00
|
|
|
|
<td><a href="/item-class/{{ item_class.id }}">{{ item_class.name }}</a></td>
|
2024-07-08 20:54:57 +02:00
|
|
|
|
<td>{% if let Some(parent) = item_class.parent %}<a href="/item-class/{{ parent }}">{{ item_classes.get(parent).unwrap().name }}</a>{% else %}-{% endif %}</td>
|
2024-07-07 13:48:31 +02:00
|
|
|
|
</tr>
|
|
|
|
|
{% endfor -%}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
{% endblock %}
|