You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
623 B
26 lines
623 B
<h1>Mash the Maps!</h1>
|
|
<p>Choose your fave.</p>
|
|
|
|
<% form_for(@mash) do |f| %>
|
|
<%= f.error_messages %>
|
|
|
|
<div id="map_a" class="mash-image">
|
|
<%= f.label 'A' %><br />
|
|
<%= f.hidden_field :map_a, :value => @map_a.id %>
|
|
<image src="<%= url_for @map_a %>.png" />
|
|
</div>
|
|
<div id="map_b" class="mash-image">
|
|
<%= f.label 'B' %><br />
|
|
<%= f.hidden_field :map_b, :value => @map_b.id %>
|
|
<image src="<%= url_for @map_b %>.png" />
|
|
</div>
|
|
<p>
|
|
<%= f.select :winner, [['A', @map_a.id], ['B', @map_b.id]] %>
|
|
</p>
|
|
<p>
|
|
<%= f.submit 'Mash' %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= link_to 'Back', mashes_path %>
|