2024-07-03 14:19:58 +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.name }}{% endblock %} – Item Details – {{ branding }}{% endblock %}
|
2024-07-03 18:47:29 +02:00
|
|
|
|
{% block page_actions %}
|
|
|
|
|
<a class="btn btn-warning" href="/item/{{ item.id }}/edit">Edit</a>
|
|
|
|
|
{% endblock %}
|
2024-07-03 14:19:58 +02:00
|
|
|
|
{% block main %}
|
|
|
|
|
<table class="table">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
UUID
|
|
|
|
|
</th>
|
2024-07-08 20:44:17 +02:00
|
|
|
|
<td>{{ item.id }}</td>
|
2024-07-03 14:19:58 +02:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
Name
|
|
|
|
|
</th>
|
|
|
|
|
<td>
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2024-07-07 13:48:31 +02:00
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
Class
|
|
|
|
|
</th>
|
|
|
|
|
<td>
|
|
|
|
|
<a href="/item-class/{{ item.class }}">{{ item_class.name }}</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2024-07-05 12:38:45 +02:00
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
2024-07-08 22:39:54 +02:00
|
|
|
|
Parents
|
2024-07-05 12:38:45 +02:00
|
|
|
|
</th>
|
|
|
|
|
<td>
|
2024-07-08 22:39:54 +02:00
|
|
|
|
<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>
|
2024-07-05 12:38:45 +02:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2024-07-03 14:19:58 +02:00
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2024-07-08 22:45:28 +02:00
|
|
|
|
|
|
|
|
|
{% 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 %}
|
2024-07-03 14:19:58 +02:00
|
|
|
|
{% endblock %}
|