<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>
    <p class="f14 mt5">
      <span class="fb">作品描述：</span><%=@student_work.description%>
    </p>
    <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">
          <%= 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>