1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-26 16:20:55 +00:00

The rest of 1-21 changes. Mostly visual flow between tournament school and wrestlers

This commit is contained in:
Jacob Cody Wimer
2014-01-21 21:43:48 -05:00
parent 1112699025
commit 73d22a126a
10 changed files with 62 additions and 24 deletions

View File

@@ -19,6 +19,19 @@
<%= f.label :score %><br>
<%= f.number_field :score %>
</div>
<% if @school %>
<%= f.hidden_field :tournament_id, :value => @tournament %>
<% 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

@@ -10,6 +10,11 @@
<%= @school.score %>
</p>
<p>
<strong>Tournament:</strong>
<%= Tournament.find(@school.tournament_id).name %>
</p>
<%= link_to "Edit #{@school.name}", edit_school_path(@school) %> |
<%= link_to 'Back to Schools', schools_path %> |
<%= link_to 'Back to Admin', '/admin/index' %>