+better site editor, redirect to view on saving

This commit is contained in:
Simon Martens
2026-01-14 20:35:30 +01:00
parent f724cdf975
commit ff5f080f6c
12 changed files with 16 additions and 35 deletions

View File

@@ -16,7 +16,7 @@
<select
id="page-editor-select"
name="key"
class="inputinput px-3 py-2 bg-white border border-slate-300 shadow-sm focus:border-slate-500 focus:ring-2 focus:ring-slate-400/30"
class="inputinput px-4 py-2 bg-white rounded-md border border-slate-300 shadow-sm focus:border-slate-500 focus:ring-2 focus:ring-slate-400/30"
onchange="window.location.href = '/redaktion/seiten/?key=' + encodeURIComponent(this.value);">
{{- if $model.pages -}}
{{- range $page := $model.pages -}}

View File

@@ -53,7 +53,6 @@
<div class="inputlabelrow">
<div class="flex flex-col">
<label for="page-html-{{ $index }}" class="inputlabel">{{ $section.Label }}</label>
<span class="text-xs text-gray-500">{{ $section.Key }}</span>
</div>
</div>