parent
b14cdd3c9e
commit
ec948315aa
@ -1,2 +1,9 @@
|
|||||||
module MashTournamentsHelper
|
module MashTournamentsHelper
|
||||||
|
def total_rounds_options_for_select
|
||||||
|
options = []
|
||||||
|
@mash_tournament.total_rounds_options.each do |n|
|
||||||
|
options << [n, n]
|
||||||
|
end
|
||||||
|
options
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
<h1>New Map Mash tournament!</h1>
|
|
||||||
|
|
||||||
<% form_for(@mash_tournament) do |f| %>
|
|
||||||
<%= f.error_messages %>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<%= f.submit 'Start' %>
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
@ -0,0 +1,9 @@
|
|||||||
|
%h1 New Map Mash tournament!
|
||||||
|
|
||||||
|
- form_for(@mash_tournament) do |f|
|
||||||
|
= f.error_messages
|
||||||
|
|
||||||
|
= f.label(:total_rounds)
|
||||||
|
= f.select(:total_rounds, total_rounds_options_for_select)
|
||||||
|
%p
|
||||||
|
= f.submit 'Start'
|
Loading…
Reference in new issue