2014-11-19 17:40:24 +08:00
|
|
|
<div id="popbox_upload" style="margin-top: -30px;margin-left: -20px;margin-right: -10px;">
|
|
|
|
<div class="upload_con">
|
2015-01-23 15:08:34 +08:00
|
|
|
<h2><%= 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>
|
2014-11-19 17:40:24 +08:00
|
|
|
<%= form_tag(course_files_path(course), :multipart => true,:remote => true,:method => :post,:name=>"upload_form") do %>
|
2015-01-27 16:03:38 +08:00
|
|
|
<!-- <label style="margin-top:3px;"><#%= l(:label_file_upload)%></label> -->
|
2014-11-19 17:40:24 +08:00
|
|
|
<%= render :partial => 'attachement_list',:locals => {:course => course} %>
|
|
|
|
<div class="cl"></div>
|
2015-01-23 15:08:34 +08:00
|
|
|
<a id="submit_resource" href="javascript:void(0);" class="upload_btn" onclick="submit_resource();"><%= l(:button_confirm)%></a>
|
|
|
|
<a href="javascript:void(0);" class="upload_btn upload_btn_grey" onclick="closeModal();"><%= l(:button_cancel)%></a>
|
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>
|