app/helpers/lecture_course_classes_helper.rb
# helpers for rendering lecture_course_classes in updating course
helpers for rendering lecture_course_classes in updating course
helpers for rendering lecture_course_classes in updating course
def render_lecture_course_classes(prefix, div_class_name, cc_run_id, org_names, candidate, checked)
     prefix_for_candidate = prefix + "[#{candidate.to_param}]"
     name  = prefix_for_candidate + "[course_class_run_id]"
     value = cc_run_id  
     content_tag( :div, :class => div_class_name) do
        check_box_tag( name, value, checked) +  label_tag( name, org_names)
     end +
     hidden_field_tag( prefix_for_candidate + "[since]", @default_since.to_s(:db))
  end
def render_lecture_course_classes ( prefix , div_class_name , cc_run_id , org_names , candidate , checked ) prefix_for_candidate = prefix + "[#{candidate.to_param}]" name = prefix_for_candidate + "[course_class_run_id]" value = cc_run_id content_tag ( :div , :class => div_class_name ) do check_box_tag ( name , value , checked ) + label_tag ( name , org_names ) end + hidden_field_tag ( prefix_for_candidate + "[since]" , @default_since . to_s ( :db ) ) end
helpers for rendering lecture_course_classes in updating course
helpers for rendering lecture_course_classes in updating course
# name and value for checkbox tag below # mark to show not deleted
prefix
<not_specific>
div_class_name
<not_specific>
cc_run_id
<not_specific>
org_names
<not_specific>
candidate
<not_specific>
checked
<not_specific>