mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-07 06:54:16 +00:00
Updated views for matches
This commit is contained in:
@@ -12,12 +12,12 @@
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :r_id %><br>
|
||||
<%= f.number_field :r_id %>
|
||||
<%= f.label :w1_name %><br>
|
||||
<%= f.number_field :w1_name %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :g_id %><br>
|
||||
<%= f.number_field :g_id %>
|
||||
<%= f.label :w2_name %><br>
|
||||
<%= f.number_field :w2_name %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :g_stat %><br>
|
||||
|
||||
@@ -19,10 +19,8 @@
|
||||
<tbody>
|
||||
<% @matches.each do |match| %>
|
||||
<tr>
|
||||
<td><%= match.r_id %></td>
|
||||
<td><%= match.g_id %></td>
|
||||
<td><%= match.g_stat %></td>
|
||||
<td><%= match.r_stat %></td>
|
||||
<td><%= match.w1_name %></td>
|
||||
<td><%= match.w2_name %></td>
|
||||
<td><%= match.winner_id %></td>
|
||||
<td><%= match.win_type %></td>
|
||||
<td><%= match.score %></td>
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
<p>
|
||||
<strong>R:</strong>
|
||||
<%= @match.r_id %>
|
||||
<%= @match.w1_name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>G:</strong>
|
||||
<%= @match.g_id %>
|
||||
<%= @match.w2_name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user