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:
@@ -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>
|
||||
|
||||
@@ -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' %>
|
||||
|
||||
Reference in New Issue
Block a user