apeters 1d204f26b8 pre-Korves.Net
Signed-off-by: apeters <apeters@korves.net>
2025-05-21 08:05:07 +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>Objects</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 %}
<h4>Manage {{ request.view_args.get("object_type") }}</h4>
<details class="show-below-lg">
<summary role="button" class="button-slate-800">Create object</summary>
<article>
<hgroup>
<h5>New object</h5>
<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>
<h5>New object</h5>
<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 %}