2015-05-20 15:05:35 +08:00
|
|
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
|
|
|
|
<%= error_messages_for 'homework_common' %>
|
|
|
|
|
2015-05-19 17:41:19 +08:00
|
|
|
<div class="project_r_h">
|
2015-05-20 15:05:35 +08:00
|
|
|
<h2 class="project_h2">
|
|
|
|
<%= l(:label_course_homework_new)%>
|
|
|
|
</h2>
|
2015-05-19 17:41:19 +08:00
|
|
|
</div>
|
|
|
|
<div class="hwork_new">
|
2015-05-20 15:05:35 +08:00
|
|
|
<%= labelled_form_for @homework,:url => {:controller => 'homework_common',:action => 'create'} do |f| %>
|
2015-05-20 16:49:19 +08:00
|
|
|
<%= hidden_field_tag "course",@course.id%>
|
2015-05-20 15:05:35 +08:00
|
|
|
<%= render :partial => 'homework_common/homework_common_form', :locals => { :homework => @homework,:f => f,:edit_mode => false } %>
|
2015-05-20 16:49:19 +08:00
|
|
|
<a href="javascript:void(0)" class="blue_btn fl mr10" onClick="submit_homework('new_homework_common');" >提交</a>
|
2015-05-20 15:43:55 +08:00
|
|
|
<%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
|
2015-05-20 15:05:35 +08:00
|
|
|
<% end%>
|
2015-05-19 17:41:19 +08:00
|
|
|
</div><!--hwork_new end-->
|
|
|
|
<div class="cl"></div>
|