s1llyw0rdz/web/handler/html/edit_status.html
2021-11-28 08:40:11 +01:00

17 lines
No EOL
555 B
HTML

{{ define "content" }}
<section>
<h1>Edit status</h1>
{{ if .form.Error }}
<p>{{ .form.Error }}</p>
{{ end }}
{{ template "flash" .flash }}
<form action="/edit?id={{ .status.Id }}" method="post">
<div class="field">
<div class="field">
<textarea name="content" placeholder="What's new?" required style="width: 100%; box-sizing: border-box;" autofocus>{{ .status.Content }}</textarea>
</div>
</div>
<input type="submit" value="Submit">
</form>
</section>
{{ end }}