2015-08-18 09:31:03 +08:00
|
|
|
|
|
|
|
|
2015-08-29 09:56:34 +08:00
|
|
|
<div class="boxContainer">
|
2015-08-18 09:31:03 +08:00
|
|
|
<div>
|
2015-12-31 12:27:31 +08:00
|
|
|
<div class="sendText fl mr10" style="width: auto">发送到</div>
|
2015-08-19 17:13:57 +08:00
|
|
|
<div class="resourcesSendTo">
|
2016-05-27 10:20:15 +08:00
|
|
|
<% unless send_ids.blank? %>
|
|
|
|
<% send_ids = send_ids.class == String ? send_ids : send_ids.join(",") %>
|
|
|
|
<% end %>
|
2016-05-27 09:32:24 +08:00
|
|
|
<select class="resourcesSendType" onclick="chooseSendType2('<%= send_id %>', '<%= send_ids%>','<%= User.current.id %>','file', '<%= @type %>');">
|
2016-07-11 15:10:55 +08:00
|
|
|
<option value="1">班级</option>
|
2015-08-20 10:14:26 +08:00
|
|
|
<option value="2">项目</option>
|
2015-12-29 17:13:01 +08:00
|
|
|
<option value="3">组织</option>
|
2015-08-19 17:13:57 +08:00
|
|
|
</select>
|
|
|
|
</div>
|
2015-08-28 09:34:02 +08:00
|
|
|
<div class="cl"></div>
|
2015-08-19 17:13:57 +08:00
|
|
|
</div>
|
2015-08-28 09:34:02 +08:00
|
|
|
<!--<div class="resourcePopupClose"> <a href="javascript:void(0);" class="resourceClose" onclick="closeModal();"></a></div>-->
|
2015-08-19 17:13:57 +08:00
|
|
|
<div class="fl">
|
2016-05-25 17:54:53 +08:00
|
|
|
<%= form_tag search_user_course_user_path(user),:method => 'get', :remote=>true, :id=> 'search_user_course_form', :class=> 'resourcesSearchBox' do %>
|
|
|
|
<%= hidden_field_tag(:send_id, send_id) %>
|
|
|
|
<%= hidden_field_tag(:send_ids, send_ids) %>
|
2016-07-11 15:10:55 +08:00
|
|
|
<input type="text" id="search_course_input" value="<%= @search %>" name="search" placeholder="输入班级ID或者名称搜索" class="searchResourcePopup" />
|
2015-12-02 14:38:41 +08:00
|
|
|
<script>
|
2016-01-21 14:33:31 +08:00
|
|
|
observeSearchfieldOnInput('search_course_input','<%= search_user_course_user_path(user)%>','<%= send_id %>','<%= send_ids%>','file')
|
2015-12-02 14:38:41 +08:00
|
|
|
</script>
|
2015-08-18 09:31:03 +08:00
|
|
|
<!--<a href="javascript:void(0);" class="searchIconPopup"></a>-->
|
2016-01-08 18:03:59 +08:00
|
|
|
<%= submit_tag '',:class=>'searchIcon2',:onfocus=>"this.blur();",:style=>'border-style:none' %>
|
2015-08-18 09:31:03 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2016-03-28 19:20:09 +08:00
|
|
|
<div id="course_file_form">
|
2016-03-29 11:36:49 +08:00
|
|
|
<%= render :partial => "users/course_file_form", :locals => {:user => user, :send_id => send_id, :send_ids => send_ids, :courses => courses, :type => type} %>
|
2016-03-28 19:20:09 +08:00
|
|
|
</div>
|
2015-08-18 09:31:03 +08:00
|
|
|
</div>
|
|
|
|
|