<%= form_for('new_form', :remote => true, :method => :post,:url => add_score_student_work_path(work.id)) do |f|%>
    <li >
      <span class="tit_fb"> 评价：</span>
      <%= f.text_area 'user_message', :class => 'hwork_ping_text', :placeholder => l(:text_caracters_maximum,:count=>250),:maxlength => 250 %>
      <div class="cl"></div>
    </li>
    <li >
      <span class="tit_fb mt2"> 评分：</span>
      <input type="number" name="score" id="score_<%= work.id%>" value="<%= score.nil? ? 60 : score.score%>" min="0" max="100" size="4" data-units="dollars" />
      <span class=" ml5">分</span>
      <div class="cl"></div></li>
    <li >
      <% if @is_teacher%> <!-- 老师才可以上传批阅结果 -->
          <span class="tit_fb"> 批阅结果：</span>
          <div>
            <%= render :partial => 'student_work/student_work_attachment_form', :locals => {:work => work,:score => score} %>
          </div>
      <%end%>
      <a href="javascript:void(0);" class="blue_n_btn fr evaluation_submit" onclick="$(this).parent().parent().submit();">提交</a>
      <div class="cl"></div>
    </li>
<% end%>