From d9a19d269bb773d676cf049dbf58d675c3fa0db9 Mon Sep 17 00:00:00 2001 From: DavisLWebb Date: Fri, 7 Mar 2014 10:44:05 -0500 Subject: I changed some of the views for the tournaments and matches (like how match creation asked for a winner) --- app/views/matches/_form.html.erb | 4 ---- app/views/matches/index.html.erb | 2 +- app/views/matches/new.html.erb | 2 -- app/views/tournaments/_selected.html.erb | 8 ++++++-- app/views/tournaments/show.html.erb | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/app/views/matches/_form.html.erb b/app/views/matches/_form.html.erb index 67d30da..015aed0 100644 --- a/app/views/matches/_form.html.erb +++ b/app/views/matches/_form.html.erb @@ -8,10 +8,6 @@ <%= f.label :name %>
<%= f.text_field :name %> -
- <%= f.label :winner_id %>
- <%= f.text_field :winner_id %> -
<%= f.submit %>
diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb index ff42ef1..60df1b5 100644 --- a/app/views/matches/index.html.erb +++ b/app/views/matches/index.html.erb @@ -15,7 +15,7 @@ <% @tournament.matches.each do |match| %> - <%= match.tournament %> + <%= match.tournament.id %> <%= match.name %> <%= match.winner %> <%= link_to 'Show', tournament_match_path(@tournament, match) %> diff --git a/app/views/matches/new.html.erb b/app/views/matches/new.html.erb index 9ac669f..74e7e3a 100644 --- a/app/views/matches/new.html.erb +++ b/app/views/matches/new.html.erb @@ -1,5 +1,3 @@

New match

<%= render 'form' %> - - diff --git a/app/views/tournaments/_selected.html.erb b/app/views/tournaments/_selected.html.erb index 9b1b7f8..7e91e85 100644 --- a/app/views/tournaments/_selected.html.erb +++ b/app/views/tournaments/_selected.html.erb @@ -14,9 +14,13 @@ <% else %> <%= f.text_field name %> <% end %> -

- <% end %> + +
+ <%= f.label :status %>
+ <%= f.number_field :status %> +
+ <%= f.submit %> <% end %> diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index c3a40e7..5629980 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -8,7 +8,7 @@ <% if current_user.in_group?(:host) %>

Game: - <%= @tournament.game %> + <%= @tournament.id %>

-- cgit v1.1-4-g5e80