1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| <h3>New game</h3>
Please choose the number of players and the time allowed to play your turn.
You may assign a password if you wish to play with your friends.<hr />
<div id="contenu">
<%= error_messages_for :game %>
<% form_for(@game) do |f| %>
<p>
<b>Number of players</b><br />
<%= radio_button :f, :players, "2", :checked=>"checked" %> 2
<%= radio_button :f, :players, "3" %> 3
<%= radio_button :f, :players, "4" %> 4
<%= radio_button :f, :players, "5" %> 5<br/>
</p>
<p>
<b>Timer</b><br />
<%= radio_button :f, :timer, "3", :checked=>"checked" %> 3 min
<%= radio_button :f, :timer, "5" %> 5 min
<%= radio_button :f, :timer, "10" %> 10 min
<%= radio_button :f, :timer, "15" %> 15 min<br/>
</p>
<p>
<b>Password</b><br />
<%= f.text_field :password %>
</p>
<p>
<%= f.submit "Create" %>
</p>
<% end %>
<%= link_to 'Back', games_path %>
</div> |
Partager