18 lines
No EOL
663 B
HTML
18 lines
No EOL
663 B
HTML
{{ $slug := ((.Context).Value "params").Slug }}
|
|
{{ $page := ((.Context).Value "adapter").GetPage $slug }}
|
|
{{ $editableSlugs := ((.Context).Value "adapter").EditableSlugs }}
|
|
|
|
{{ template "header" . }}
|
|
<a href="/">«</a>
|
|
<form method="POST" action="/save/{{($page).Slug}}">
|
|
<input hidden name="oldSlug" value="{{($page).Slug}}">
|
|
{{ if $editableSlugs }}
|
|
<input type="text" name="slug" value="{{($page).Slug}}">
|
|
{{ end }}
|
|
<textarea name="title">{{($page).Title}}</textarea>
|
|
<span>last edited {{($page).Edited}}</span>
|
|
<textarea name="content">{{($page).Content}}</textarea>
|
|
<input type="submit" value="Save"/>
|
|
</form>
|
|
|
|
{{ template "footer" . }} |