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-08-19 17:13:57 +08:00
|
|
|
<div class="sendText fl">将资源发送至</div>
|
|
|
|
<div class="resourcesSendTo">
|
2015-08-20 16:05:58 +08:00
|
|
|
<select class="resourcesSendType" onclick="chooseSendType('<%= send_id%>','<%= send_ids%>');">
|
2015-08-20 10:14:26 +08:00
|
|
|
<option value="1">课程</option>
|
|
|
|
<option value="2">项目</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">
|
2015-08-18 09:31:03 +08:00
|
|
|
<%= form_tag search_user_course_user_path(user),:method => 'get',
|
|
|
|
:remote=>true,:id=>'search_user_course_form',:class=>'resourcesSearchBox' do %>
|
2015-08-20 16:05:58 +08:00
|
|
|
<%= hidden_field_tag(:send_id, send_id) %>
|
|
|
|
<%= hidden_field_tag(:send_ids, send_ids) %>
|
2015-08-18 09:31:03 +08:00
|
|
|
<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_course_user_path(user),:remote=>true,:id=>'course_list_form' %>
|
2015-08-28 09:34:02 +08:00
|
|
|
<div>
|
2015-08-18 09:31:03 +08:00
|
|
|
|
2015-08-28 09:34:02 +08:00
|
|
|
<%= hidden_field_tag(:send_id, send_id) %>
|
|
|
|
<%= hidden_field_tag(:send_ids, send_ids) %>
|
|
|
|
<div class="courseReferContainer">
|
|
|
|
<% if !courses.empty? %>
|
|
|
|
<% courses.each do |course| %>
|
2015-09-07 16:01:19 +08:00
|
|
|
<ul class="courseSend">
|
|
|
|
<li class="" style="display:inline-block">
|
2015-08-28 09:34:02 +08:00
|
|
|
<input name="course_ids[]" type="checkbox" value="<%= course.id %>" class="courseSendCheckbox"/>
|
|
|
|
</li>
|
2015-09-07 16:01:19 +08:00
|
|
|
<li class="sendCourseName"><%= truncate(course.name,:lendght=>25) + '['+course.time.to_s+course.term + ']'%></li>
|
2015-08-28 09:34:02 +08:00
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2015-08-24 13:54:15 +08:00
|
|
|
</div>
|
2015-08-28 09:34:02 +08:00
|
|
|
<div>
|
|
|
|
<div class="courseSendSubmit">
|
|
|
|
<!--<a href="javascript:void(0);" class="sendSourceText">确定</a>-->
|
|
|
|
<%= submit_tag '确定',:class=>'sendSourceText',:onfocus=>'this.blur();' %>
|
|
|
|
</div>
|
2015-08-29 09:56:34 +08:00
|
|
|
<div class="courseSendCancel"><a href="javascript:void(0);" class="sendSourceText mt10" onclick="closePopUp();">取消</a></div>
|
2015-08-28 09:34:02 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<% end %>
|
2015-08-18 09:31:03 +08:00
|
|
|
</div>
|
|
|
|
|