编程作业:当测试集个数超过10个时,如图样式问题
This commit is contained in:
parent
3bb932d691
commit
650eb963b4
|
@ -295,8 +295,8 @@
|
|||
<div class="cl"></div>
|
||||
|
||||
<script id="t:test-answer-list" type="text/html">
|
||||
<div class="mt10" style="margin-left:63px;">
|
||||
<label class="fl fontGrey2 mr10 mt5" name="inputs_label"> </label>
|
||||
<div class="mt10" style="margin-left:57px;">
|
||||
<label class="fl fontGrey2 mr10 mt5 w20" name="inputs_label"> </label>
|
||||
<textarea class="InputBox w265 fl mr10" placeholder="测试输入" name="program[input][]"></textarea>
|
||||
<textarea class="InputBox w265 fl mr5" placeholder="测试输出" name="program[output][]"></textarea>
|
||||
<a href="javascript:void(0);" class=" fl icon_add" title="增加测试组"></a>
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<div class="cl"></div>
|
||||
<% if edit_mode && homework.is_program_homework? %>
|
||||
<% homework.homework_tests.each_with_index do |test, index| %>
|
||||
<div class="mt10" style="margin-left:63px;">
|
||||
<label class="fl fontGrey2 mr10 mt5" name="inputs_label"><%=index+1 %> </label>
|
||||
<div class="mt10" style="margin-left:57px;">
|
||||
<label class="fl fontGrey2 mr10 mt5 w20" name="inputs_label"><%=index+1 %> </label>
|
||||
<textarea class="InputBox w265 fl mr10" placeholder="测试输入" name="program[input][]" <%=not_allow_select ? 'disabled' : '' %>><%= test.input %></textarea>
|
||||
<textarea class="InputBox w265 fl mr5" placeholder="测试输出" name="program[output][]" <%=not_allow_select ? 'disabled' : '' %>><%= test.output %></textarea>
|
||||
<% unless not_allow_select %>
|
||||
|
@ -21,8 +21,8 @@
|
|||
</div>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<div class="mt10" style="margin-left:63px;">
|
||||
<label class="fl fontGrey2 mr10 mt5" name="inputs_label">1 </label>
|
||||
<div class="mt10" style="margin-left:57px;">
|
||||
<label class="fl fontGrey2 mr10 mt5 w20" name="inputs_label">1 </label>
|
||||
<textarea class="InputBox w265 fl mr10" placeholder="测试输入" name="program[input][]" id="textarea_input_test"></textarea>
|
||||
<textarea class="InputBox w265 fl mr5" placeholder="测试输出" name="program[output][]" id="textarea_output_test"></textarea>
|
||||
<a href="javascript:void(0);" class=" fl icon_add" title="增加测试组"></a>
|
||||
|
|
Loading…
Reference in New Issue