app/helpers/trainings_helper.rb
# Returns the HTML for the TrainingController#create_user_training() action of the specified
# Training instance, but only if the current user can access its contents.
#
# Assumes training is a valid Training instance.
#
Returns the HTML for the TrainingController#create_user_training() action of the specified
Training instance, but only if the current user can access its contents.

Assumes training is a valid Training instance.
Returns the HTML for the TrainingController#create_user_training () action of the specified Training instance but only if the current user can access its contents . Assumes training is a valid Training instance .
def link_to_training_create_user_training( training )
    link_to(
      I18n.t('trainings.create_user_training'),
      training_create_user_training_path(id: training.id),
      method: :post,
      confirm: I18n.t('trainings.create_user_training_ask_confirm'),
      class: 'btn btn-default'
    ) if check_training_visibility_for( training )
  end
def link_to_training_create_user_training ( training ) link_to ( I18n . t ( 'trainings.create_user_training' ) , training_create_user_training_path ( id : training . id ) , method : :post , confirm : I18n . t ( 'trainings.create_user_training_ask_confirm' ) , class : 'btn btn-default' ) if check_training_visibility_for ( training ) end
Returns the HTML for the TrainingController#create_user_training() action of the specified
Training instance, but only if the current user can access its contents.
Returns the HTML for the TrainingController#create_user_training () action of the specified Training instance but only if the current user can access its contents .
training
<not_specific>