diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-27 14:22:17 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-27 14:22:17 -0400 |
commit | 442146c7160b95d452975336dfddaf8faf74d544 (patch) | |
tree | f4cbb6405a05e0ebbdea264dbcb6124ad96f560d /app/views | |
parent | abf98c279674c172fc9064e5013087c72101fad9 (diff) |
fixed, seeds, roundrobin, and _show_tourn
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/common/_show_tournament.html.erb | 2 | ||||
-rw-r--r-- | app/views/tournaments/_form.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb index b16a37b..a9569b6 100644 --- a/app/views/common/_show_tournament.html.erb +++ b/app/views/common/_show_tournament.html.erb @@ -14,7 +14,7 @@ <p> Players signed up: <%= target.players.count %> </p> </div> <div class="col-md-4 things"> - <p> <%= (target.randomized_teams)? "Teams are Random" : "Teams are Chosen" %></p> + <p> <%# (target.randomized_teams)? "Teams are Random" : "Teams are Chosen" %></p> <p> Players signed up: <%= target.players.count %> </p> </div> </div> diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb index 28d9c27..cb4c175 100644 --- a/app/views/tournaments/_form.html.erb +++ b/app/views/tournaments/_form.html.erb @@ -84,7 +84,7 @@ <%= f.fields_for :stages do |stages_fields| %><fieldset><legend>Stages</legend> <label for="num_stages">Number of tournament stages</label> <input type="number" name="num_stages" min="1" value="<%= params[:num_stages] ? params[:num_stages].to_i : 1 %>"> - <%= submit_tag("Set Stages", :class => "btn") %> + <%# submit_tag("Set Stages", :class => "btn") %> <% for i in 1..(params[:num_stages].to_i) do %> <%= stages_fields.fields_for i.to_s do |stage_fields| %><fieldset><legend>Stage <%= i %></legend> <%= stage_fields.label :scheduling_method %> |