<%= form_for(@tournament) do |f| %> <% if @tournament.errors.any? %>

<%= pluralize(@tournament.errors.count, "error") %> prohibited this tournament from being saved:

<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :address %>
<%= f.text_field :address %>
<%= f.label :director %>
<%= f.text_field :director %>
<%= f.label :director_email %>
<%= f.text_field :director_email %>
<%= f.label :date %> (YYYY-MM-DD)
<%= f.date_field :date %>
<%= f.label :tournament_type %>
<%= f.select :tournament_type, @tournament.tournament_types %>

See About page for information on tournament types: <%= link_to "About", "/static_pages/about" %>

For double elimination tournaments, 1-6 places 1st through 6th and 1-8 places 1st through 8th.



<%= f.label "Information is public" %>
<%= f.check_box :is_public %>
Leave this unchecked until you're ready to share seeding info, brackets, and lineups.


<%= f.submit 'Submit',:class=>"btn btn-success" %>
<% end %>