feat: manual entity creation

chore: clippy
This commit is contained in:
Per Stark
2025-10-15 21:00:17 +02:00
parent 2964f1a5a5
commit 35ff4e1464
14 changed files with 653 additions and 43 deletions

View File

@@ -5,8 +5,16 @@
{% block main %}
<div id="knowledge_pane" class="flex justify-center grow mt-2 sm:mt-4 gap-6">
<div class="container">
<div class="nb-panel p-3 mb-4 flex flex-col sm:flex-row justify-between items-start sm:items-center">
<h2 class="text-xl font-extrabold tracking-tight">Knowledge Entities</h2>
<div class="nb-panel p-3 mb-4 space-y-3 sm:space-y-0 sm:flex sm:flex-row sm:justify-between sm:items-center">
<div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
<h2 class="text-xl font-extrabold tracking-tight">Knowledge Entities</h2>
<button type="button" class="nb-btn nb-cta btn-sm"
hx-get="/knowledge-entity/new"
hx-target="#modal"
hx-swap="innerHTML">
New Entity
</button>
</div>
<form hx-get="/knowledge" hx-target="#knowledge_pane" hx-push-url="true" hx-swap="outerHTML"
class="flex items-center gap-2 mt-2 sm:mt-0">
<input type="hidden" name="page" value="1" />
@@ -43,4 +51,4 @@
{% include "knowledge/relationship_table.html" %}
</div>
</div>
{% endblock %}
{% endblock %}