<h1><%= @team.name %> </h1>

<% for round in 1..4 %>
   <p>
   <div><strong><%= @round_names[round-1] %></strong> - <%= oddstring(@markets[round-1].price) %> <br>
 
  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] %> <br>
  <% 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 %>
    <p></p>
  <% 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 %>
     <p></p>
   <% end %>

   </div>
   </p>
<% end %>