diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index b626a14..8d87bda 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -1,10 +1,15 @@
class TournamentsController < ApplicationController
- before_action :set_tournament, only: [:error,:teampointadjust,:remove_teampointadjust,:remove_school_delegate,:remove_delegate,:school_delegate,:delegate,:matches,:weigh_in,:weigh_in_weight,:create_custom_weights,:show,:edit,:update,:destroy,:up_matches,:no_matches,:team_scores,:brackets,:generate_matches,:bracket,:all_brackets]
- before_filter :check_access_manage, only: [:teampointadjust,:remove_teampointadjust,:remove_school_delegate,:school_delegate,:weigh_in,:weigh_in_weight,:create_custom_weights,:update,:edit,:generate_matches,:matches]
+ before_action :set_tournament, only: [:weigh_in_sheet,:error,:teampointadjust,:remove_teampointadjust,:remove_school_delegate,:remove_delegate,:school_delegate,:delegate,:matches,:weigh_in,:weigh_in_weight,:create_custom_weights,:show,:edit,:update,:destroy,:up_matches,:no_matches,:team_scores,:brackets,:generate_matches,:bracket,:all_brackets]
+ before_filter :check_access_manage, only: [:weigh_in_sheet,:teampointadjust,:remove_teampointadjust,:remove_school_delegate,:school_delegate,:weigh_in,:weigh_in_weight,:create_custom_weights,:update,:edit,:generate_matches,:matches]
before_filter :check_access_destroy, only: [:destroy,:delegate,:remove_delegate]
before_filter :check_tournament_errors, only: [:generate_matches]
before_filter :check_for_matches, only: [:up_matches,:bracket,:all_brackets]
+ def weigh_in_sheet
+
+ end
+
+
def remove_teampointadjust
if params[:teampointadjust]
@points = Teampointadjust.find(params[:teampointadjust])
diff --git a/app/views/tournaments/weigh_in.html.erb b/app/views/tournaments/weigh_in.html.erb
index 5265a26..ee7dc73 100644
--- a/app/views/tournaments/weigh_in.html.erb
+++ b/app/views/tournaments/weigh_in.html.erb
@@ -16,5 +16,8 @@
<%= f.submit 'Submit', :class=>"btn btn-success" %>
<% end %>
<% end %>
+
+
+ <%= link_to "Printable Weigh In Sheet" , "/tournaments/#{@tournament.id}/weigh_in_sheet?print=true" %>
diff --git a/app/views/tournaments/weigh_in_sheet.html.erb b/app/views/tournaments/weigh_in_sheet.html.erb
new file mode 100644
index 0000000..6772f1a
--- /dev/null
+++ b/app/views/tournaments/weigh_in_sheet.html.erb
@@ -0,0 +1,35 @@
+
+<% @tournament.schools.each do |school| %>
+
| Name | +Weight Class | +Actual Weight | +
|---|---|---|
| <%= wrestler.name %> | +<%= wrestler.weight.max %> | ++ |