<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
<%= error_messages_for 'homework_common' %>

<div class="project_r_h">
  <h2 class="project_h2">
    <%= l(:label_course_homework_edit)%>
  </h2>
</div>
<div class="hwork_new">
  <%= form_for @homework do |f| %>
      <%= render :partial => 'homework_common/homework_common_form', :locals => { :homework => @homework,:f => f,:edit_mode => true } %>
      <a href="javascript:void(0)" class="blue_btn fl mr10" onClick="submit_homework('edit_homework_common_<%= @homework.id%>');" >提交</a>
      <%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
  <% end%>
</div><!--hwork_new end-->
<div class="cl"></div>