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

24 lines
750 B
HTML
Raw Normal View History

2021-12-02 20:41:17 +00:00
{{ define "status_form" }}
2021-12-04 15:22:30 +00:00
<div class="faces">
{{ 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">
2021-12-04 15:22:30 +00:00
<textarea class="edit-status" name="content" maxlength="140" placeholder="What's new?" required autofocus>{{ .Content }}</textarea>
2021-12-02 20:41:17 +00:00
</div>
<input type="submit" value="Submit">
2021-12-26 17:42:49 +00:00
{{ end }}