Add a Dialog an ExApp page can open for a message, confirm, or prompt.

The page waits for the choice. App navigation includes the same piece.
This commit is contained in:
2026-09-28 21:10:20 +02:00
parent d4c18e63bb
commit 0a387815a0
9 changed files with 772 additions and 4 deletions
+3
View File
@@ -105,6 +105,7 @@ func (n AppNavigation) serve(w http.ResponseWriter, r *http.Request) {
Missing: msg,
Title: title,
Theme: !n.DisableTheme,
Dialog: DialogHTML(),
})
}
@@ -135,6 +136,7 @@ type shellView struct {
Missing string
Title string
Theme bool
Dialog template.HTML
}
type itemView struct {
@@ -295,6 +297,7 @@ var shellTmpl = template.Must(template.New("shell").Parse(`<!DOCTYPE html>
</style>
</head>
<body data-selected="{{.Selected}}" data-address="{{.Address}}">
{{.Dialog}}
<div id="app-nav">
<div id="nav-header">{{.Header}}</div>
<div id="app-nav-body">