<%= @team.name %>

<% for round in 1..4 %>

<%= @round_names[round-1] %> - <%= oddstring(@markets[round-1].price) %>
Bet <%= @team.name %> <%= link_to_remote "advances to and wins", :url => {:action => "info", :round_up => round, :transaction => "buy", :team => @team}, :update => "market_list" %> in the <%= @round_names[round-1] %>
<% if round == @round_up.to_i and @transaction == "buy" %> <% form_remote_tag :url => { :action => "buy", :market_id => @markets[round-1] }, :update => "market_list" do %> Wager: Y$<%= text_field "trade", "wager", :size => 10 %> <%= submit_tag "Place Bet"%> <% end %>

<% end %> Bet <%= @team.name %> <%= link_to_remote "does not make it past", :url => {:action => "info", :round_up => round, :transaction => "sell", :team => @team}, :update => "market_list" %> the <%= @round_names[round-1] %> <% if round == @round_up.to_i and @transaction == "sell" %> <% form_remote_tag :url => { :action => "sell", :market_id => @markets[round-1] }, :update => "market_list" do %> Wager: Y$<%= text_field "trade", "wager", :size => 10 %> <%= submit_tag "Place Bet"%> <% end %>

<% end %>

<% end %>