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

11 lines
374 B
Cheetah
Raw Normal View History

2024-05-30 11:43:50 +00:00
<form hx-post={{ .hxPostUrl }} hx-swap="outerHTML">
2024-05-28 19:19:30 +00:00
<input type="hidden" name="postId" value="{{.postId}}">
2024-05-29 08:04:10 +00:00
<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 }}
2024-05-29 08:04:10 +00:00
</div>
2024-05-28 17:17:30 +00:00
</form>
2024-05-28 19:19:30 +00:00
<p>{{.error}}</p>
2024-05-28 17:17:30 +00:00