Templates mit HTMX

This commit is contained in:
2026-09-09 21:31:08 +02:00
parent 870a3cf708
commit d1e210d03e
8 changed files with 63 additions and 45 deletions
@@ -6,10 +6,10 @@
<nav>
<!-- Navigation links can be added here -->
<ul>
<li><a href="#">Eigenschaften</a></li>
<li><a href="#">Produkte</a></li>
<li><a href="#">Konditionen</a></li>
<li><a href="#">Übersetzungen</a></li>
<li><a href="#" hx-get="/properties" hx-target="#main-content">Eigenschaften</a></li>
<li><a href="#" hx-get="/products" hx-target="#main-content">Produkte</a></li>
<li><a href="#" hx-get="/conditions" hx-target="#main-content">Konditionen</a></li>
<li><a href="#" hx-get="/translations" hx-target="#main-content">Übersetzungen</a></li>
<li><a href="#">Datenimporte</a></li>
</ul>
</nav>
@@ -1,4 +1,4 @@
{{define "properties"}}
<!-- Properties content can be added here -->
<h2>X-CPQ Material Editor: Eigenschaften</h2>
<!-- Main content can be added here -->
@@ -79,4 +79,3 @@
</div>
{{end}}
@@ -20,8 +20,8 @@
{{ template "navbar" . }}
</header>
<main>
<section id="main-content">
{{ template "properties" . }}
<section id="main-content">
<h1>Bitte einen Bereich in der Navigation auswählen</h1>
</section>
</main>