apeters 519dbc73c6 Cat.
Signed-off-by: apeters <apeters@korves.net>
2025-06-03 11:40:56 +00:00

43 lines
1.2 KiB
HTML

{% if not request.headers.get("Hx-Request") %}
{% extends "base.html" %}
{% endif %}
{% block breadcrumb %}
<nav aria-label="breadcrumb" id="nav-breadcrumb" hx-swap-oob="true">
<ul>
<li><span>Objects</span></li>
<li><a href="#" hx-target="#body-main" hx-get="{{ request.path }}">{{ request.view_args.get("object_type")|capitalize }}</a></li>
</ul>
</nav>
{% endblock breadcrumb %}
{% block body %}
<h5>Manage {{ request.view_args.get("object_type") }}</h5>
<details class="show-below-lg">
<summary role="button" class="button-slate-800">Create object</summary>
<article>
<hgroup>
<h6>New object</h6>
<p>Create an object by defining a unique name.</p>
</hgroup>
{% include "objects/includes/create/" ~ request.view_args.get("object_type") ~ ".html" %}
</article>
</details>
<div class="grid split-grid">
<article class="hide-below-lg">
<hgroup>
<h6>New object</h6>
<p>Create an object by defining a unique name.</p>
</hgroup>
{% include "objects/includes/create/" ~ request.view_args.get("object_type") ~ ".html" %}
</article>
<article id="{{ request.view_args.get("object_type") }}-full-table">
{% include "objects/includes/objects/table.html" %}
</article>
</div>
{% endblock body %}