%= 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, :address %>
<%= text_input f, :address %>
<%= error_tag f, :address %>
<%= label f, :reserved_seats %>
<%= number_input f, :reserved_seats %>
<%= error_tag f, :reserved_seats %>
<%= label f, :max_seats %>
<%= number_input f, :max_seats %>
<%= error_tag f, :max_seats %>
<%= label f, :description %>
<%= text_input f, :description %>
<%= error_tag f, :description %>
<%= submit "Save" %>
<% end %>