63 lines
1.3 KiB
HTML
63 lines
1.3 KiB
HTML
{#
|
||
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>
|
||
Parents
|
||
</th>
|
||
<td>
|
||
<ol class="breadcrumb mb-0">
|
||
{%- for parent in parents %}
|
||
<li class="breadcrumb-item"><a href="/item/{{ parent.id }}">{{ parent.name }}</a></li>
|
||
{%- endfor %}
|
||
<li class="breadcrumb-item active">{{ item.name }}</li>
|
||
</ol>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
{% if children.len() != 0 %}
|
||
<h3 class="mt-4">Direct Children</h3>
|
||
|
||
<ul>
|
||
{% for child in children %}
|
||
<li><a href="/item/{{ child.id }}">{{ child.name }}</a></li>
|
||
{% endfor %}
|
||
</ul>
|
||
{% endif %}
|
||
{% endblock %}
|