New Contest
<%= form_for @contest, html: { class: 'square' } do |f| %>
<%= render 'shared/errors', messages: @contest.errors.full_messages %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :contest_type %>
<%= f.select :contest_type, @contest.types.invert %>
<%= f.label :start %>
<%= f.datetime_select :start, datetime_separator: '', time_separator: '' %>
<%= f.label :end %>
<%= f.datetime_select :end, datetime_separator: '', time_separator: '' %>
<%= f.label :status %>
<%= f.select :status, @contest.statuses.invert %>
<%= f.label :default_time %>
<%= f.time_select :default_time, time_separator: '' %>
<%= f.submit 'Save' %>
<% end %>