diff --git a/assets/page.html b/assets/page.html index acfbc44..7f54f9f 100644 --- a/assets/page.html +++ b/assets/page.html @@ -15,11 +15,16 @@ {{range .Crumbs}}/{{.Name}}{{end}} - {{if .CanEdit}}EDIT{{end}} + {{if .EditMode}} + CANCEL + + {{else if .CanEdit}} + EDIT + {{end}}
{{if .EditMode}} -
+
@@ -38,10 +43,6 @@
-
- CANCEL - -
{{else}} {{if .Content}} diff --git a/assets/style.css b/assets/style.css index 5b7be5a..e2c28ba 100644 --- a/assets/style.css +++ b/assets/style.css @@ -303,12 +303,6 @@ textarea:focus { box-shadow: 0 0 5px #0a0; } -.form-actions { - display: flex; - gap: 0.75rem; - justify-content: flex-end; -} - .btn-save { background: none; border: none;