Umbau-Projekt (SSR und Rest)

This commit is contained in:
2026-09-03 22:20:55 +02:00
parent 13363cb568
commit c66df283d1
37 changed files with 3719 additions and 344 deletions
+19
View File
@@ -0,0 +1,19 @@
{{define "content"}}
{{with .Form}}
<section id="compose">
{{/* Kein enctype/Dateifeld: das angehängte Bild bleibt beim Bearbeiten
unverändert (siehe handleEditEntry). Ein Dateifeld hier würde
versprechen, was der Endpunkt nicht tut. */}}
<form method="post" action="/entry/{{.PID}}/edit">
<input type="hidden" name="return_to" value="{{.BackURL}}">
<h2>Beitrag bearbeiten</h2>
{{with $.Err}}<p class="msg">{{.Msg}}</p>{{end}}
<label for="content">Text</label>
<textarea id="content" name="content" rows="6" maxlength="1000"
required>{{.Content}}</textarea>
<button type="submit">Speichern</button>
</form>
<p class="muted"><a href="{{.BackURL}}">Abbrechen</a></p>
</section>
{{end}}
{{end}}