= page_header
= simple_form_for @settings, url: course_admin_components_path(current_course) do |f|
  = f.error_notification message: f.object.errors.full_messages.first
  table.table.table-hover
    thead
      tr
        th = t('.name')
        th = t('.enabled')
    tbody
      - course_components = current_component_host.course_disableable_components
      - collection = course_components.map { |c| [c.display_name, c.key.to_s] }
      = f.collection_check_boxes :enabled_component_ids, collection, :last, :first do |f|
        tr
          th = f.label
          td = f.check_box

  = f.button :submit, t('.button')

= page_header
= simple_form_for @settings, url: course_admin_components_path(current_course) do |f|
  = f.error_notification message: f.object.errors.full_messages.first
  table.table.table-hover
    thead
      tr
        th = t('.name')
        th = t('.enabled')
    tbody
      - course_components = current_component_host.course_disableable_components
      - collection = course_components.map { |c| [c.display_name, c.key.to_s] }.sort
      = f.collection_check_boxes :enabled_component_ids, collection, :last, :first do |f|
        tr
          th = f.label
          td = f.check_box

  = f.button :submit, t('.button')

Sort course component settings for display.
Sort course component settings for display.

cysjonathan/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2