FIX: Laden screen below

This commit is contained in:
Simon Martens
2026-01-23 17:50:49 +01:00
parent 0bd614712f
commit de81e199f4
8 changed files with 1848 additions and 1802 deletions

View File

@@ -1,4 +1,4 @@
{
"debug": false,
"debug": true,
"allow_test_login": true
}

View File

@@ -3,6 +3,7 @@ package controllers
import (
"fmt"
"net/http"
"net/url"
"slices"
"strings"
@@ -236,7 +237,7 @@ func (p *OrtEditPage) POST(engine *templating.Engine, app core.App) HandleFunc {
}
}(app, place.Id, nameChanged)
redirect := fmt.Sprintf("/ort/%s/", id)
redirect := fmt.Sprintf("/ort/%s/edit?saved_message=%s", id, url.QueryEscape("Änderungen gespeichert."))
return e.Redirect(http.StatusSeeOther, redirect)
}
}

View File

@@ -3,6 +3,7 @@ package controllers
import (
"fmt"
"net/http"
"net/url"
"slices"
"strings"
@@ -142,7 +143,7 @@ func (p *OrtNewPage) POST(engine *templating.Engine, app core.App) HandleFunc {
}
}(app, createdPlace.Id)
redirect := fmt.Sprintf("/ort/%s/", createdPlace.Id)
redirect := fmt.Sprintf("/ort/%s/edit?saved_message=%s", createdPlace.Id, url.QueryEscape("Änderungen gespeichert."))
return e.Redirect(http.StatusSeeOther, redirect)
}
}

View File

@@ -8,13 +8,9 @@ TODO:
- Datei-Upload-Manager
- Schöpfer
- Stecher/kuferstecher
BUGS:
- Schriftgröße Edit-Screens
- doppelte Einträge Reihen-Liste, Endpoint /reihen (siehe Abendstunden)
- Neuer Ort anlegen führ manachmal auf DB-ID
Features:
- Extra-DB für FTS5: ist eigentlich nichtTeil der Haupt-DB, sondern nur Suchindex

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -221,15 +221,6 @@
{{- end -}}
</div>
</div>
<div class="px-3 py-2 border-t border-slate-200 bg-stone-50 flex items-center">
<button
type="button"
class="content-action-button"
onclick="window.location.assign('/almanach/{{ $model.result.Entry.MusenalmID }}/contents/new')">
<i class="ri-add-line"></i>
<span>Neuer Beitrag</span>
</button>
</div>
</div>
{{- else -}}
<div class="mx-4 mt-2">

View File

@@ -641,9 +641,16 @@
@apply block;
}
html[data-htmx-busy="true"],
body[data-htmx-busy="true"],
[data-htmx-busy="true"] {
html[data-htmx-busy="true"]::before {
content: "";
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.18);
z-index: 40;
pointer-events: auto;
}
[data-htmx-busy="true"]:not(html):not(body) {
pointer-events: none;
opacity: 0.6;
}