li7y/templates/item_details.html

59 lines
1.3 KiB
HTML
Raw Normal View History

2024-07-03 14:19:58 +02:00
{#
SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{%- import "macros.html" as macros -%}
2024-07-03 14:19:58 +02:00
{% extends "base.html" %}
{% block title %}{% block page_title %}{% call macros::item_name(item, item_class, false) %}{% 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>
{% call macros::item_name_terse(item, true) %}
2024-07-03 14:19:58 +02:00
</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>
Parents
2024-07-05 12:38:45 +02:00
</th>
<td>
{%- call macros::parents_breadcrumb(item, parents, item_classes, full=true) %}
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 }}">{% call macros::item_name(child, item_classes.get(child.class).unwrap(), true) %}</a></li>
2024-07-08 22:45:28 +02:00
{% endfor %}
</ul>
{% endif %}
2024-07-03 14:19:58 +02:00
{% endblock %}