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>
|
2015-06-16 10:39:42 +08:00
|
|
|
|
<div class="hwork_new" id="hwork_new">
|
|
|
|
|
<h3 class="c_blue f16 mb10">请选择将要发布的作业类型
|
|
|
|
|
</h3>
|
|
|
|
|
<input type="radio" class="mb10 fl" name="homework_common_type" id="homework_detail_manual_radio" checked/><span class="ml5 fl">人工评分的作业(支持匿名互评、灵活设置评分比例)</span>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<input type="radio" class="mb20 fl" name="homework_common_type" id="homework_detail_programing_radio"/><span class="ml5 fl">自动评测的编程作业(支持C++程序的自动评分)</span>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<a href="javascript:void(0);" class=" orange_btn" onclick="select_homework_common_type()">下一步</a>
|
2015-05-19 17:41:19 +08:00
|
|
|
|
</div><!--hwork_new end-->
|
2015-06-16 10:39:42 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
<div id="homework_detail_manual" class="undis">
|
|
|
|
|
<div class="hwork_new">
|
|
|
|
|
<%= labelled_form_for @homework,:url => {:controller => 'homework_common',:action => 'create'} do |f| %>
|
|
|
|
|
<%= hidden_field_tag "course",@course.id%>
|
2015-06-16 10:51:58 +08:00
|
|
|
|
<%= hidden_field_tag "homework_common_tyle","homework_detail_manual"%>
|
2015-06-16 10:50:27 +08:00
|
|
|
|
<%= render :partial => 'homework_common/homework_detail_manual_form', :locals => { :homework => @homework,:f => f,:edit_mode => false } %>
|
2015-06-16 10:39:42 +08:00
|
|
|
|
<a href="javascript:void(0)" class="blue_btn fl mr10" onClick="submit_homework('new_homework_common');" >提交</a>
|
2015-06-16 11:20:17 +08:00
|
|
|
|
<a href="javascript:void(0);" class="orange_btn_homework fl" onclick="return_homework_common_type()">上一步</a>
|
2015-06-16 10:39:42 +08:00
|
|
|
|
<%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div><!--hwork_new end-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="homework_detail_programing" class="undis">
|
|
|
|
|
<div class="hwork_new">
|
2015-06-16 10:50:27 +08:00
|
|
|
|
<%= labelled_form_for @homework,:url => {:controller => 'homework_common',:action => 'create'} do |f| %>
|
|
|
|
|
<%= hidden_field_tag "course",@course.id%>
|
2015-06-16 10:51:58 +08:00
|
|
|
|
<%= hidden_field_tag "homework_common_tyle","homework_detail_programing"%>
|
2015-06-16 10:50:27 +08:00
|
|
|
|
<%= render :partial => 'homework_common/homework_detail_programing_form', :locals => { :homework => @homework,:f => f,:edit_mode => false } %>
|
|
|
|
|
<a href="javascript:void(0)" class="blue_btn fl mr10" onClick="submit_homework('new_homework_common');" >提交</a>
|
2015-06-16 11:20:17 +08:00
|
|
|
|
<a href="javascript:void(0);" class="orange_btn_homework fl" onclick="return_homework_common_type()">上一步</a>
|
2015-06-16 10:50:27 +08:00
|
|
|
|
<%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
|
|
|
|
|
<% end%>
|
2015-06-16 10:39:42 +08:00
|
|
|
|
</div><!--hwork_new end-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|