2015-03-24 17:12:51 +08:00
|
|
|
|
2015-11-03 10:28:13 +08:00
|
|
|
<div id="popbox_upload" class=" mb10" style="margin-top: -30px;color:#15bccf; font-size:16px;">
|
2014-11-19 17:40:24 +08:00
|
|
|
<div class="upload_con">
|
2015-11-03 10:28:13 +08:00
|
|
|
<h2 style="text-align: center"><%= l(:label_upload_files)%></h2>
|
2014-11-19 17:40:24 +08:00
|
|
|
<div class="upload_box">
|
|
|
|
<%= error_messages_for 'attachment' %>
|
2015-01-23 15:08:34 +08:00
|
|
|
<div id="network_issue" style="color: red; display: none;"><%= l(:label_file_upload_error_messages)%></div>
|
2015-03-14 12:01:08 +08:00
|
|
|
|
|
|
|
<%= form_tag(course_files_path(course), :multipart => true,:remote => !ie8?,:name=>"upload_form") do %>
|
2015-04-15 16:00:45 +08:00
|
|
|
<input type="hidden" name="course_attachment_type" value="<%= course_attachment_type%>">
|
2014-11-19 17:40:24 +08:00
|
|
|
<%= render :partial => 'attachement_list',:locals => {:course => course} %>
|
|
|
|
<div class="cl"></div>
|
2016-07-07 17:06:31 +08:00
|
|
|
<a href="javascript:void(0);" class="fr grey_btn mr40 f14 fl" onclick="closeModal();"><%= l(:button_cancel)%></a>
|
2015-11-11 16:02:37 +08:00
|
|
|
<!--<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' %>
|
2014-11-19 17:40:24 +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>
|