1
0
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:
Jacob Cody Wimer
2014-01-22 13:12:40 -05:00
parent 4a463132da
commit d4b97c83c3
13 changed files with 91 additions and 20 deletions

View File

@@ -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>

View File

@@ -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>