

<div class="boxContainer">
  <div>
    <div class="sendText fl">将资源发送至</div>
    <div class="resourcesSendTo">
      <select class="resourcesSendType" onclick="chooseSendType('<%= send_id%>','<%= send_ids%>');">
        <option value="1">课程</option>
        <option value="2" selected>项目</option>
      </select>
    </div>
    <div class="cl"></div>
  </div>
  <!--<div class="resourcePopupClose"> <a href="javascript:void(0);" class="resourceClose" onclick="closeModal();"></a></div>-->
  <div class="fl">
    <%= form_tag  search_user_project_user_path(user),:method => 'get',
                  :remote=>true,:id=>'search_user_project_form',:class=>'resourcesSearchBox' do %>
        <%= hidden_field_tag(:send_id, send_id) %>
        <%= hidden_field_tag(:send_ids, send_ids) %>
      <input type="text" name="search" placeholder="输入项目ID或者名称搜索" class="searchResourcePopup" />
      <!--<a href="javascript:void(0);"  class="searchIconPopup"></a>-->
        <%= submit_tag '',:class=>'searchIconPopup',:onfocus=>"this.blur();",:style=>'border-style:none' %>
    <% end %>
  </div>
  <%= form_tag add_exist_file_to_project_user_path(user),:remote=>true,:id=>'projects_list_form' %>
  <div>

    <%= hidden_field_tag(:send_id, send_id) %>
    <%= hidden_field_tag(:send_ids, send_ids) %>
    <div class="courseReferContainer">
    <% if !projects.empty?  %>
        <% projects.each do |project| %>
        <ul class="courseSend">
          <li class="" style="display:inline-block">
            <input name="projects_ids[]" type="checkbox" value="<%= project.id %>" class="courseSendCheckbox"/>
          </li>
          <li class="sendCourseName"><%= project.name%></li>
        </ul>
        <% end %>
    </div>
  </div>
  <div>
    <div class="courseSendSubmit">
      <!--<a href="javascript:void(0);" class="sendSourceText">确定</a>-->
      <%= submit_tag '确定',:class=>'sendSourceText',:onfocus=>'this.blur();' %>
    </div>
    <div class="courseSendCancel"><a href="javascript:void(0);" class="sendSourceText" onclick="closePopUp();">取消</a></div>
  </div>
  <div class="cl"></div>
    <% end %>
</div>

