li7y/templates/item_class_details.html

50 lines
984 B
HTML
Raw Normal View History

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.name }}{% endblock %} Item Class Details {{ branding }}{% endblock %}
{% block page_actions %}
<a class="btn btn-warning" href="/item-class/{{ item_class.id }}/edit">Edit</a>
{% endblock %}
{% block main %}
<table class="table">
<tbody>
<tr>
<th>
UUID
</th>
2024-07-08 20:44:17 +02:00
<td>{{ item_class.id }}</td>
2024-07-07 13:48:31 +02:00
</tr>
<tr>
<th>
Name
</th>
<td>
{{ item_class.name }}
</td>
</tr>
<tr>
<th>
Type
</th>
<td>
{{ item_class.type }}
</td>
</tr>
{% if let Some(parent) = parent -%}
<tr>
<th>
Parent
</th>
<td>
<a href="/item-class/{{ parent.id }}">{{ parent.name }}</a>
2024-07-07 13:48:31 +02:00
</td>
</tr>
{%- endif %}
</tbody>
</table>
{% endblock %}