app/helpers/meeting_reservations_helper.rb
# Returns the HTML for the MeetingReservationsController#export_csi_csv()
# action for the specified Meeting instance.
#
# Assumes meeting is a valid Meeting instance belonging to the CSI championship.
#
Returns the HTML for the MeetingReservationsController#export_csi_csv()
action for the specified Meeting instance.

Assumes meeting is a valid Meeting instance belonging to the CSI championship.
Returns the HTML for the MeetingReservationsController#export_csi_csv () action for the specified Meeting instance . Assumes meeting is a valid Meeting instance belonging to the CSI championship .
def link_to_reservation_csv_data_export( current_user, meeting )
    if TeamManagerValidator.can_manage?( current_user, meeting ) &&
       TeamManagerValidator.any_reservations_for?( current_user, meeting )
      if (
           ReservationsCsi2Csv.is_a_csi_meeting( meeting )
         )
        link_to(
          meeting_reservations_export_csi_csv_path(id: meeting.id),
          class: 'btn btn-default',
          'data-toggle' => 'tooltip', 'title' => I18n.t('meeting_reservation.export_csi_csv_button_tooltip')
        ) do
          image_tag('page_white_excel.png') << I18n.t('meeting_reservation.export_csi_csv_button_title').html_safe
        end
      elsif (
           ReservationsFin2CsvMatrix.is_a_valid_meeting( meeting )
         )
        link_to(
          meeting_reservations_export_fin_csv_matrix_path(id: meeting.id),
          class: 'btn btn-default',
          'data-toggle' => 'tooltip', 'title' => I18n.t('meeting_reservation.export_fin_csv_button_tooltip')
        ) do
          image_tag('page_white_excel.png') << I18n.t('meeting_reservation.export_fin_csv_button_title').html_safe
        end
      end
    end
  end
def link_to_reservation_csv_data_export ( current_user , meeting ) if TeamManagerValidator . can_manage? ( current_user , meeting ) && TeamManagerValidator . any_reservations_for? ( current_user , meeting ) if ( ReservationsCsi2Csv . is_a_csi_meeting ( meeting ) ) link_to ( meeting_reservations_export_csi_csv_path ( id : meeting . id ) , class : 'btn btn-default' , 'data-toggle' => 'tooltip' , 'title' => I18n . t ( 'meeting_reservation.export_csi_csv_button_tooltip' ) ) do image_tag ( 'page_white_excel.png' ) << I18n . t ( 'meeting_reservation.export_csi_csv_button_title' ) . html_safe end elsif ( ReservationsFin2CsvMatrix . is_a_valid_meeting ( meeting ) ) link_to ( meeting_reservations_export_fin_csv_matrix_path ( id : meeting . id ) , class : 'btn btn-default' , 'data-toggle' => 'tooltip' , 'title' => I18n . t ( 'meeting_reservation.export_fin_csv_button_tooltip' ) ) do image_tag ( 'page_white_excel.png' ) << I18n . t ( 'meeting_reservation.export_fin_csv_button_title' ) . html_safe end end end end
Returns the HTML for the MeetingReservationsController#export_csi_csv()
action for the specified Meeting instance.
Returns the HTML for the MeetingReservationsController#export_csi_csv () action for the specified Meeting instance .
current_user
<not_specific>
meeting
<not_specific>