班级作业:新建作业时“从题库选用”编程作业,如图报500

This commit is contained in:
cxt 2017-02-24 18:32:09 +08:00
parent 29e22f0c6c
commit 73f64e80a8
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<span class="f12 c_red mt5 fr">温馨提示:请至少输入一组样例供学生参考。</span>
<div class="cl"></div>
<% if edit_mode && homework.is_program_homework? %>
<% if edit_mode && homework.is_program_homework? && homework.homework_samples.count > 0 %>
<% homework.homework_samples.each_with_index do |sample, index| %>
<div class="mt10" style="margin-left:57px;">
<label class="fl fontGrey2 mr10 mt5 w20" name="sample_inputs_label"><%= index+1 %>&nbsp;&nbsp;</label>