mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-16 13:03:37 +00:00
Updated re-directs, added weights to tournament#show, and edited a few views
This commit is contained in:
@@ -15,6 +15,16 @@
|
||||
<%= f.label :max %><br>
|
||||
<%= f.number_field :max %>
|
||||
</div>
|
||||
|
||||
<% if @weight %>
|
||||
<%= f.hidden_field :tournament_id, :value => @tournament_field %>
|
||||
<% else %>
|
||||
<div class="field">
|
||||
<%= f.label 'Tournament' %><br>
|
||||
<%= f.collection_select :tournament_id, Tournament.all, :id, :name %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
<%= 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