mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 14:01:48 +00:00
26 lines
826 B
Text
26 lines
826 B
Text
<h3><%= @week.contest if @week.contest %></h3>
|
|
|
|
<%= form_for @week, html: { class: 'square' } do |f| %>
|
|
<%= render 'shared/errors', messages: @week.errors.full_messages %>
|
|
<%= f.hidden_field :contest_id %>
|
|
|
|
<div class="fields horizontal">
|
|
<%= f.label :name %>
|
|
<%= f.text_field :name %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :start_date %>
|
|
<%= f.date_select :start_date %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :map1_id, "1st map" %>
|
|
<%= f.select :map1_id, @week.contest.maps.basic.collect{|m| [m.name, m.id]} %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :map2_id, "2nd map" %>
|
|
<%= f.select :map2_id, @week.contest.maps.basic.collect{|m| [m.name, m.id]} %>
|
|
</div>
|
|
<div class="controls">
|
|
<%= f.submit 'Save Week' %>
|
|
</div>
|
|
<% end %>
|