s1llyw0rdz/web/handler/html/edit_status.html

17 lines
506 B
HTML
Raw Normal View History

2021-11-22 13:23:30 +00:00
{{ 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">
2021-11-22 20:23:30 +00:00
<div class="field">
<textarea name="content" placeholder="What's new?" required style="width: 100%; box-sizing: border-box;" autofocus>{{ .status.Content }}</textarea>
</div>
2021-11-22 13:23:30 +00:00
</div>
<input type="submit" value="Submit">
</form>
{{ end }}