mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-08 15:29:20 +00:00
Fixed Layouts
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
<h1>Listing weights</h1>
|
||||
|
||||
<table>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Max</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -14,9 +12,7 @@
|
||||
<% @weights.each do |weight| %>
|
||||
<tr>
|
||||
<td><%= weight.max %></td>
|
||||
<td><%= link_to 'Show', weight %></td>
|
||||
<td><%= link_to 'Edit', edit_weight_path(weight) %></td>
|
||||
<td><%= link_to 'Destroy', weight, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
<td><%= link_to 'Show', weight, :class=>"btn" %><%= link_to 'Edit', edit_weight_path(weight), :class=>"btn" %><%= link_to 'Destroy', weight, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
<h1>Weight Class:<%= @weight.max %></h1>
|
||||
|
||||
|
||||
<%= link_to 'Edit Weight Class', edit_weight_path(@weight) %> |
|
||||
<%= link_to 'Back to Weight Classes', weights_path %>
|
||||
<%= link_to "Edit #{@weight.max} Weight Class", edit_weight_path(@weight) %> |
|
||||
<%= link_to 'Back to Weight Classes', weights_path %> |
|
||||
<%= link_to 'Back to Admin', '/admin/index' %>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
Reference in New Issue
Block a user