s1llyw0rdz/web/handler/html/edit_status.html
2021-11-22 21:23:30 +01:00

17 lines
No EOL
506 B
HTML

{{ define "content" }}
<h1>Edit status</h1>
{{ if .form.Error }}
<p>{{ .form.Error }}</p>
{{ end }}
{{ if .flash }}
<p>{{ .flash }}</p>
{{ end }}
<form action="/statuses/{{ .status.Id }}/update" 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>
{{ end }}