mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
15 lines
370 B
Elixir
15 lines
370 B
Elixir
<h2>New game</h2>
|
|
|
|
<%= form_for @changeset, game_path(@conn, :create), [class: "create-game"],
|
|
fn form -> %>
|
|
<div class="form-group">
|
|
<%= label form, :opponent_id %>
|
|
<%= select form, :opponent_id, @opponents %>
|
|
<%= error_tag form, :opponent_id %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= submit "Create game", class: "button" %>
|
|
</div>
|
|
<% end %>
|