<div id="popbox02">
  <div class="ni_con">
    <span class="f16 fontBlue fb">请您确认刚刚上传的作品信息</span>
    <p class="f14 mt5">
      <span class="fb">作品名称：</span><%=@student_work.name%>
    </p>
    <div class="f14 mt5" style="max-width: 425px; color:#808181; max-height:300px; overflow: auto;">
      <div class="fb fl dis">作品描述：</div>
      <div class="upload_img fl" style="max-width: 330px;"><%=@student_work.description.html_safe %></div>
      <div class="cl"></div>
    </div>
    <p class="mt5">
      <span class="fl fb mr30">附</span><span class="fb fl">件：</span>
      <% if @student_work.attachments.empty? %>
          <span class="fl c_red"><%= "无附件"%></span>
      <% else %>
          <div class="fl grey_c">
            <% @student_work.attachments.each_with_index do |attachment,i| %>
                <div id="attachment_<%= attachment.id%>">
                  <%= link_to_short_attachment attachment, :class => 'link_file_a fl', :download => true -%>
                  <%= link_to('&nbsp;'.html_safe, attachment_path(attachment, :format => 'js'), :method => 'delete', :remote => true, :title => '删除', :class => 'remove-upload fl', :confirm => l(:text_are_you_sure)) %>
                  <span class="ml5 fl">(<%= number_to_human_size attachment.filesize %>)</span>
                  <div class="cl"></div>
                </div>
            <% end -%>
            <%#= render :partial => 'work_attachments_status', :locals => {:attachments => @student_work.attachments, :status => 2} %>
          </div>
      <% end %>
      </p>
      <div class="cl"></div>
      <div class="ni_btn mt10">
        <a href="javascript:" class="tijiao" onclick="clickOK();" style="margin-bottom: 15px; margin-left: 55px;" >
          确&nbsp;&nbsp;定
        </a>
      </div>
      </div>
</div>

<script type="text/javascript">
    function clickOK() {
        window.location.href = '<%= student_work_index_url(:homework => @homework.id)%>';
    }
</script>