li7y/templates/item_class_details.html

50 lines
1,002 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{#
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>
<td>{{ item_class.id }}</td>
</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 }} ({{ parent.id }})</a>
</td>
</tr>
{%- endif %}
</tbody>
</table>
{% endblock %}