log101-dot-dev-services/templates/emoji_form.tmpl

11 lines
374 B
Cheetah

<form hx-post={{ .hxPostUrl }} hx-swap="outerHTML">
<input type="hidden" name="postId" value="{{.postId}}">
<div class="emoji-buttons-container">
{{ range .results }}
<button name="emojiInput" value={{ .Emoji }} type="submit" class="emoji-button">{{ .Emoji }} {{ if gt .TotalCount 0 }} &nbsp; {{ .TotalCount }} {{ end }}</button>
{{ end }}
</div>
</form>
<p>{{.error}}</p>