37 lines
1.8 KiB
Plaintext
37 lines
1.8 KiB
Plaintext
<a href="javascript:void(0);" class="CloseBtn" title="关闭弹框"></a>
|
|
<h2 class="BluePopuph2 fl">编程作业的测试集设置</h2>
|
|
<div class="cl"></div>
|
|
<div class="HomeWorkCon">
|
|
<div class="mt15">
|
|
<select class="InputBox W120 language_type" >
|
|
<%= options_for_select({"C语言"=>1, "C++"=>2}, (edit_mode && homework.is_program_homework?) ? homework.language : 1) %>
|
|
</select>
|
|
</div>
|
|
<% if edit_mode && homework.is_program_homework? %>
|
|
<% homework.homework_tests.each_with_index do |test, index| %>
|
|
<div class="mt10">
|
|
<textarea class="InputBox W320 fl mr10" placeholder="测试输入" id="textarea_input_test"><%= test.input %></textarea>
|
|
<textarea class="InputBox W320 fl mr5" placeholder="测试输出"><%= test.output %></textarea>
|
|
<a href="javascript:void(0);" class=" fl icon_add" title="增加测试组"></a>
|
|
<% if index != 0 %>
|
|
<a href="javascript:void(0);" class=" fl icon_remove" title="删除测试组"></a>
|
|
<% end %>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<% end %>
|
|
<% else %>
|
|
<div class="mt10">
|
|
<textarea class="InputBox W320 fl mr10" placeholder="测试输入" id="textarea_input_test"></textarea>
|
|
<textarea class="InputBox W320 fl mr5" placeholder="测试输出"></textarea>
|
|
<a href="javascript:void(0);" class=" fl icon_add" title="增加测试组"></a>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="mt10">
|
|
<span class="f12 c_red db mt5 fl">温馨提示:您可以在发布作业后,在作业“模拟答题”中进行标准代码的检测和提交。</span>
|
|
<a href="javascript:void(0);" class="BlueCirBtn fr">确 定</a>
|
|
<div class="cl"></div>
|
|
</div>
|
|
|
|
</div><!----HomeWorkCon end--> |