<%= form_tag send_homework_to_course_user_path(user), :remote => true, :id => 'choose_course_list_form' %>
<div>
  <%= hidden_field_tag(:send_id, send_id) %>
  <div class="courseReferContainer">
    <% if !courses.empty? %>
        <% courses.each do |course| %>
            <ul class="courseSend">
              <li class="" style="display:inline-block">
                <input name="course_ids[]" type="checkbox" value="<%= course.id %>" class="courseSendCheckbox"/>
              </li>
              <li class="sendCourseName"><%= truncate(course.name, :lendght => 25) + '['+current_time_and_term(course) + ']' %></li>
            </ul>
        <% end %>
    <% end %>
  </div>
</div>
<div class="cl"></div>
<span id="choose_courses_notice" class="c_red"></span>
<div>
  <div class="courseSendSubmit">
    <a href="javascript:void(0);" onfocus='this.blur();' onclick="send_submit();" class="sendSourceText">确定</a>
  </div>
  <div class="courseSendCancel">
    <a href="javascript:void(0);" class="sendSourceText" onclick="hideModal();">取消</a>
  </div>
</div>
<div class="cl"></div>