1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Files
wrestlingdev.com/app/views/tournaments/weigh_in.html.erb

21 lines
638 B
Plaintext

<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>
<br>
<br>
<% @weights.each do |weight| %>
<%= link_to "#{weight.max}" , "/tournaments/#{@tournament.id}/weigh_in/#{weight.id}" %>
<br>
<% end %>
<br>
<% if can? :manage, @tournament %>
<%= form_for(@tournament) do |f| %>
<div class="field">
<%= f.label :weigh_in_ref %><br>
<%= f.text_field :weigh_in_ref %>
</div>
<br>
<%= f.submit 'Submit', :class=>"btn btn-success" %>
<% end %>
<% end %>