= simple_form_for([@badge, @earned_badge]) do |f|
  %h3= "You are awarding the #{@badge.name} #{term_for :badge} to..."
  = hidden_field_tag :badge_id, @badge.id
  .small-12.medium-4.columns
    = select_tag :student, options_from_collection_for_select(current_course.students, "id", "name", @earned_badge.try(:student_id)), :prompt => "Select Student"
  
  .clearfix

  .small-12.columns
    %label Feedback
    = f.bootsy_area :feedback

  %hr
  .right
    = f.button :submit, "#{@earned_badge.persisted? ? 'Update' : 'Award '} #{term_for :badge}",  :class => "button tiny radius"
    = link_to 'Cancel', badge_path(@badge), :class => 'button tiny radius'

= simple_form_for([@badge, @earned_badge]) do |f|
  %h3= "You are awarding the #{@badge.name} #{term_for :badge} to..."
  = hidden_field_tag :badge_id, @badge.id
  .small-12.medium-4.columns
    = select_tag :student, options_from_collection_for_select(current_course.students.alpha, "id", "name", @earned_badge.try(:student_id)), :prompt => "Select Student"
  
  .clearfix

  .small-12.columns
    %label Feedback
    = f.bootsy_area :feedback

  %hr
  .right
    = f.button :submit, "#{@earned_badge.persisted? ? 'Update' : 'Award '} #{term_for :badge}",  :class => "button tiny radius"
    = link_to 'Cancel', badge_path(@badge), :class => 'button tiny radius'

Make students in earned badge form alphabetical
Make students in earned badge form alphabetical
