2015-11-03 10:28:13 +08:00
|
|
|
<div id="popbox_upload" class="mb10" style="margin-top: -30px;color:#15bccf; font-size:16px;">
|
|
|
|
<div class="upload_con">
|
|
|
|
<h2 style="text-align: center"><%= l(:label_upload_files)%></h2>
|
|
|
|
<div class="upload_box">
|
|
|
|
<%= error_messages_for 'attachment' %>
|
|
|
|
<div id="network_issue" style="color: red; display: none;"><%= l(:label_file_upload_error_messages)%></div>
|
|
|
|
|
|
|
|
<%= form_tag(course_files_path(course), :multipart => true,:remote => !ie8?,:name=>"upload_form") do %>
|
2015-11-09 10:03:06 +08:00
|
|
|
<input type="hidden" name="in_course_toolbar" value="Y">
|
2015-11-03 10:28:13 +08:00
|
|
|
<!--<p class="c_grey fr mt10 mr5">-->
|
|
|
|
<div class="c_dark">
|
2015-11-13 11:17:47 +08:00
|
|
|
<input name="course_attachment_type[]" type="checkbox" value="1" checked class="c_dark" >课件</input> <span class="c_grey">|</span>
|
|
|
|
<input name="course_attachment_type[]" type="checkbox" value="2" class="c_dblue">软件</input> <span class="c_grey">|</span>
|
|
|
|
<input name="course_attachment_type[]" type="checkbox" value="3" class="c_dblue">媒体</input> <span class="c_grey">|</span>
|
|
|
|
<input name="course_attachment_type[]" type="checkbox" value="4" class="c_dblue">代码</input> <span class="c_grey">|</span>
|
|
|
|
<input name="course_attachment_type[]" type="checkbox" value="6" class="c_dblue">论文</input> <span class="c_grey">|</span>
|
|
|
|
<input name="course_attachment_type[]" type="checkbox" value="5" class="c_dblue">其他</input></a>
|
2015-11-03 10:28:13 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div>
|
2015-11-10 15:18:13 +08:00
|
|
|
<%= render :partial => 'files/new_style_attachment_list',:locals => {:container => course} %>
|
2015-11-03 10:28:13 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
2015-11-11 16:02:37 +08:00
|
|
|
<a href="javascript:void(0);" class=" fr grey_btn mr40" onclick="hideModal();"><%= l(:button_cancel)%></a>
|
|
|
|
<!--<a id="submit_resource" href="javascript:void(0);" class="blue_btn fr" onclick="submit_resource();"><%#= l(:button_confirm)%></a>-->
|
|
|
|
<%= submit_tag '确定',:onclick=>'submit_resource();',:onfocus=>'this.blur()',:id=>'submit_resource',:class=>'sendSourceText fr' %>
|
2015-11-03 10:28:13 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= javascript_include_tag 'attachments' %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function submit_resource()
|
|
|
|
{
|
|
|
|
$('#submit_resource').parent().submit();
|
|
|
|
}
|
|
|
|
</script>
|