app/controllers/team_management_controller.rb
# Team's swimmers presence summary with costs if team manager
Team's swimmers presence summary with costs if team manager
Team ' s swimmers presence summary with costs if team manager
def show_presence
    @tab_title = I18n.t('presences.title')
    hyp = HeaderYearPicker.new()
    @season_list = hyp.find(2015)
    @tsp = TeamSwimmersPresence.new( @team.id )
    @current_seasons = @tsp.get_seasons( params['header_year'].present? ? params['header_year'].slice(0, 4) : nil )
    @tsp.retrieve_data
    @presence_data = @tsp.presence_data
    @swimmers_summary = @tsp.create_swimmers_summary
  end
def show_presence @tab_title = I18n . t ( 'presences.title' ) hyp = HeaderYearPicker . new ( ) @season_list = hyp . find ( 2015 ) @tsp = TeamSwimmersPresence . new ( @team . id ) @current_seasons = @tsp . get_seasons ( params [ 'header_year' ] . present? ? params [ 'header_year' ] . slice ( 0 , 4 ) : nil ) @tsp . retrieve_data @presence_data = @tsp . presence_data @swimmers_summary = @tsp . create_swimmers_summary end
Team's swimmers presence summary with costs if team manager
Team ' s swimmers presence summary with costs if team manager
# TODO Find out managed seasons # Prepare data retreiving structure # Find out current seasons for team. Use only initial year of header_year # Retrieve team presence data # Creates swimmers_summary