li7y/templates/item_details.html
2024-07-11 01:16:37 +02:00

50 lines
965 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.name }}{% endblock %} Item Details {{ branding }}{% endblock %}
{% block page_actions %}
<a class="btn btn-warning" href="/item/{{ item.id }}/edit">Edit</a>
{% endblock %}
{% block main %}
<table class="table">
<tbody>
<tr>
<th>
UUID
</th>
<td>
{{ item.id }}
</td>
</tr>
<tr>
<th>
Name
</th>
<td>
{{ item.name }}
</td>
</tr>
<tr>
<th>
Class
</th>
<td>
<a href="/item-class/{{ item.class }}">{{ item_class.name }}</a>
</td>
</tr>
<tr>
<th>
Parent
</th>
<td>
{% if let Some(parent) = item.parent %}{{ parent }}{% else %}-{% endif %}
</td>
</tr>
</tbody>
</table>
{% endblock %}