ars/templates/single_choice/player.stpl

10 lines
418 B
Text

<article>
<h1><%= name %></h1>
<% for (index, answer) in answers.iter().enumerate() { %>
<form method="POST" hx-post="" hx-target="closest main">
<input type="hidden" name="player_id" value="<%= player_id %>"></input>
<input type="hidden" name="value" value="<%= index %>"></input>
<button type="submit"><%= answer %></button>
</form>
<% } %>
</article>