8 lines
365 B
Text
8 lines
365 B
Text
<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>
|
|
<% } %>
|