parent
44e3daa0d2
commit
9423f4b45a
|
@ -0,0 +1,80 @@
|
|||
<ul class="hwork_new_basic">
|
||||
<li >
|
||||
<label class="label02"><span class="c_red">*</span> 名称: </label>
|
||||
<input type="text" name="" class="w548 h26 mb10 fl" >
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li >
|
||||
<label class="label02 "> 作业描述及 <br />评分依据: </label>
|
||||
<textarea name="" placeholder="请在此填入作业的要求及评分依据" class=" w548 h150 mb10 fl" ></textarea>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li >
|
||||
<label class="label02"> 附件: </label>
|
||||
<input type="submit" name="" value="文件浏览" class="sub_btn"> <span class=" c_grey ">-文件不超过200MB</span>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li class="fl">
|
||||
<label class="label02"><span class="c_red">*</span> 截止日期: </label>
|
||||
<input type="text" name="" class="hwork_input02 fl" value="2015-04-03 12:00" >
|
||||
<a href="javascript:void(0);" class="pic_date mt5 ml5"></a>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<li class="fl ml100">
|
||||
<label class="label02"> 发布日期: </label>
|
||||
<input type="text" name="" class="hwork_input02 fl" value="2015-04-03 12:00" >
|
||||
<a href="javascript:void(0);" class="pic_date mt5 ml5"></a>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li>
|
||||
<label class="label02">迟交扣分: </label>
|
||||
<select class="fl mb10 h26 w70" name="s2" >
|
||||
<option >1</option>
|
||||
<option selected="selected">2</option>
|
||||
<option >3</option>
|
||||
<option >4</option>
|
||||
<option >5</option>
|
||||
</select>
|
||||
<span class="fl mt5"> 分</span>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
</ul><!--hwork_new_basic end--->
|
||||
<div class="hwork_new_set">
|
||||
<p class="fl ml20 f14 mb10 c_orange">编程评测设置</p>
|
||||
<div class="cl"></div>
|
||||
<ul>
|
||||
<li >
|
||||
<label class="label02"> 开发语言: </label>
|
||||
<select class="fl mb10 h26 w150" >
|
||||
<option>C++</option>
|
||||
</select>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02"> 标准代码: </label>
|
||||
<textarea name="" class=" w459 h150 mb10 fl" ></textarea>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02"> 测试输入: </label>
|
||||
<input type="text" class="fl h26 w196 mb10" />
|
||||
</li>
|
||||
<li >
|
||||
<label class=" fl f14 ml10"> 输出: </label>
|
||||
<input type="text" class="fl h26 w196 mb10" />
|
||||
</li>
|
||||
<li><a class="icon_add ml10 " href="javascript:void(0);" title="添加测试"></a> <span class="green_btn fl ml5">OK !</span></li>
|
||||
<div class="cl"></div>
|
||||
<li >
|
||||
<label class="label02"> 测试输入: </label>
|
||||
<input type="text" class="fl h26 w196 mb10" />
|
||||
</li>
|
||||
<li >
|
||||
<label class="fl f14 ml10"> 输出: </label>
|
||||
<input type="text" class="fl h26 w196 mb10" />
|
||||
</li>
|
||||
<li><a class="icon_add ml10 " href="javascript:void(0);" title="添加测试"></a> <a href="javascript:void(0);" class="green_btn fl ml5 ">测试</a></li>
|
||||
<div class="cl"></div>
|
||||
</ul>
|
||||
</div>
|
|
@ -8,7 +8,7 @@
|
|||
</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 } %>
|
||||
<%= render :partial => 'homework_common/homework_detail_manual_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%>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<div class="hwork_new">
|
||||
<%= labelled_form_for @homework,:url => {:controller => 'homework_common',:action => 'create'} do |f| %>
|
||||
<%= hidden_field_tag "course",@course.id%>
|
||||
<%= render :partial => 'homework_common/homework_common_form', :locals => { :homework => @homework,:f => f,:edit_mode => false } %>
|
||||
<%= render :partial => 'homework_common/homework_detail_manual_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>
|
||||
<a href="javascript:void(0);" class="orange_btn_homework fl mr10" onclick="return_homework_common_type()">上一步</a>
|
||||
<%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
|
||||
|
@ -31,89 +31,13 @@
|
|||
</div>
|
||||
<div id="homework_detail_programing" class="undis">
|
||||
<div class="hwork_new">
|
||||
<ul class="hwork_new_basic">
|
||||
<li >
|
||||
<label class="label02"><span class="c_red">*</span> 名称: </label>
|
||||
<input type="text" name="" class="w548 h26 mb10 fl" >
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li >
|
||||
<label class="label02 "> 作业描述及 <br />评分依据: </label>
|
||||
<textarea name="" placeholder="请在此填入作业的要求及评分依据" class=" w548 h150 mb10 fl" ></textarea>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li >
|
||||
<label class="label02"> 附件: </label>
|
||||
<input type="submit" name="" value="文件浏览" class="sub_btn"> <span class=" c_grey ">-文件不超过200MB</span>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li class="fl">
|
||||
<label class="label02"><span class="c_red">*</span> 截止日期: </label>
|
||||
<input type="text" name="" class="hwork_input02 fl" value="2015-04-03 12:00" >
|
||||
<a href="javascript:void(0);" class="pic_date mt5 ml5"></a>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<li class="fl ml100">
|
||||
<label class="label02"> 发布日期: </label>
|
||||
<input type="text" name="" class="hwork_input02 fl" value="2015-04-03 12:00" >
|
||||
<a href="javascript:void(0);" class="pic_date mt5 ml5"></a>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li>
|
||||
<label class="label02">迟交扣分: </label>
|
||||
<select class="fl mb10 h26 w70" name="s2" >
|
||||
<option >1</option>
|
||||
<option selected="selected">2</option>
|
||||
<option >3</option>
|
||||
<option >4</option>
|
||||
<option >5</option>
|
||||
</select>
|
||||
<span class="fl mt5"> 分</span>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
</ul><!--hwork_new_basic end--->
|
||||
<div class="hwork_new_set">
|
||||
<p class="fl ml20 f14 mb10 c_orange">编程评测设置</p>
|
||||
<div class="cl"></div>
|
||||
<ul>
|
||||
<li >
|
||||
<label class="label02"> 开发语言: </label>
|
||||
<select class="fl mb10 h26 w150" >
|
||||
<option>C++</option>
|
||||
</select>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02"> 标准代码: </label>
|
||||
<textarea name="" class=" w459 h150 mb10 fl" ></textarea>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02"> 测试输入: </label>
|
||||
<input type="text" class="fl h26 w196 mb10" />
|
||||
</li>
|
||||
<li >
|
||||
<label class=" fl f14 ml10"> 输出: </label>
|
||||
<input type="text" class="fl h26 w196 mb10" />
|
||||
</li>
|
||||
<li><a class="icon_add ml10 " href="javascript:void(0);" title="添加测试"></a> <span class="green_btn fl ml5">OK !</span></li>
|
||||
<div class="cl"></div>
|
||||
<li >
|
||||
<label class="label02"> 测试输入: </label>
|
||||
<input type="text" class="fl h26 w196 mb10" />
|
||||
</li>
|
||||
<li >
|
||||
<label class="fl f14 ml10"> 输出: </label>
|
||||
<input type="text" class="fl h26 w196 mb10" />
|
||||
</li>
|
||||
<li><a class="icon_add ml10 " href="javascript:void(0);" title="添加测试"></a> <a href="javascript:void(0);" class="green_btn fl ml5 ">测试</a></li>
|
||||
<div class="cl"></div>
|
||||
</ul>
|
||||
</div><!--hwork_new_set end-->
|
||||
<a href="courses_hworklist.html" class="blue_btn fl mr10 " >提交</a>
|
||||
<a href="javascript:void(0);" class="orange_btn_homework fl mr10" onclick="return_homework_common_type()">上一步</a>
|
||||
<a href="#" target="_blank" class="grey_btn fl ">取消</a>
|
||||
<%= labelled_form_for @homework,:url => {:controller => 'homework_common',:action => 'create'} do |f| %>
|
||||
<%= hidden_field_tag "course",@course.id%>
|
||||
<%= 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>
|
||||
<a href="javascript:void(0);" class="orange_btn_homework fl mr10" onclick="return_homework_common_type()">上一步</a>
|
||||
<%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
|
||||
<% end%>
|
||||
</div><!--hwork_new end-->
|
||||
<div class="cl"></div>
|
||||
</div>
|
Loading…
Reference in New Issue