%= form_for @changeset, @action, fn f -> %>
<%= if @changeset.action do %>
Oops, something went wrong! Please check the errors below.
<% end %>
<%= label f, :name %>
<%= text_input f, :name %>
<%= error_tag f, :name %>
<%= label f, :location %>
<%= text_input f, :location %>
<%= error_tag f, :location %>
<%= label f, :game %>
<%= text_input f, :game %>
<%= error_tag f, :game %>
<%= submit "Save" %>
<% end %>