17 lines
No EOL
555 B
HTML
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 }} |