2023-11-05 23:01:47 +01:00
|
|
|
<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>
|
|
|
|
<% } %>
|