1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Updated show for schools and weights

This commit is contained in:
2015-07-02 09:33:45 -04:00
parent 58ac150aaf
commit 06635f3d46
2 changed files with 10 additions and 8 deletions

View File

@@ -40,7 +40,9 @@
<th>Record</th>
<th>Seed Criteria</th>
<th>Extra?</th>
<% if user_signed_in? %>
<th>Actions</th>
<% end %>
</tr>
</thead>
@@ -58,13 +60,13 @@
<td><% if wrestler.extra? == true %>
Yes
<% end %></td>
<td>
<% if user_signed_in? %>
<td>
<%= link_to 'Show', wrestler , :class=>"btn btn-default" %>
<%= link_to 'Edit', edit_wrestler_path(wrestler), :class=>"btn btn-default" %>
<%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %>
<% end %>
</td>
</td>
<% end %>
</tr>
<% end %>
<% end %>

View File

@@ -19,7 +19,7 @@
<th>Record</th>
<th>Seed Criteria</th>
<th>Extra?</th>
<th>Actions for wrestler</th>
<% if user_signed_in? %><th>Actions for wrestler</th><% end %>
</tr>
</thead>
<tbody>
@@ -43,10 +43,10 @@
<td><% if wrestler.extra? == true %>
Yes
<% end %></td>
<td><%= link_to 'Show', wrestler , :class=>"btn btn-default" %>
<% if user_signed_in? %>
<%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' } , :class=>"btn btn-danger" %></td>
<% end %>
<% if user_signed_in? %>
<td><%= link_to 'Show', wrestler , :class=>"btn btn-default" %>
<%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' } , :class=>"btn btn-danger" %></td>
<% end %>
</tr>
<% end %>
<% end %>