23 lines
No EOL
749 B
HTML
23 lines
No EOL
749 B
HTML
{{ define "status_form" }}
|
|
<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 }}
|
|
</div>
|
|
<div class="field">
|
|
<textarea class="edit-status" name="content" maxlength="140" placeholder="What's new?" required autofocus>{{ .Content }}</textarea>
|
|
</div>
|
|
<input type="submit" value="Submit">
|
|
{{ end }} |