s1llyw0rdz/web/handler/html/common/status_form.html

23 lines
802 B
HTML
Raw Normal View History

2021-12-02 20:41:17 +00:00
{{ define "status_form" }}
<div style="margin-bottom: 1em">
{{ range $i, $v := faces }}
<div class="radio">
<input
type="radio"
id="face{{ $i }}"
name="face"
value="{{ $v }}"
{{ if eq $i 0 }}
{{ if or (eq $.Face $v) (eq $.Face "") }}checked{{ end }}
{{ else }}
{{ if eq $.Face $v }}checked{{ end }}
{{ end }}>
<label for="face{{ $i }}">{{ $v }}</label>
</div>
{{ end }}
2021-12-02 20:41:17 +00:00
</div>
<div class="field">
<textarea name="content" maxlength="140" placeholder="What's new?" required style="width: 100%; box-sizing: border-box; height: 100px;" autofocus>{{ .Content }}</textarea>
</div>
<input type="submit" value="Submit">
{{ end }}