|
|
@ -70,11 +70,15 @@
|
|
|
|
<div class="mt15">
|
|
|
|
<div class="mt15">
|
|
|
|
<span>请使用 <%= @homework.language_name %> 语言编写</span>
|
|
|
|
<span>请使用 <%= @homework.language_name %> 语言编写</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mt10">
|
|
|
|
<div class="mt10">
|
|
|
|
<%= f.text_area :name, id: 'program-title', class:"InputBox W700", placeholder:"请概括你的代码的功能" %>
|
|
|
|
<%= f.text_area :name, id: 'program-title', class:"InputBox W700", placeholder:"请概括你的代码的功能" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mt10">
|
|
|
|
<div class="mt10">
|
|
|
|
<%= f.text_area :description, id: 'program-src', class:"InputBox W700 H150", placeholder:"请贴入你的代码", rows: 10 %>
|
|
|
|
<%= f.text_area :description, id: 'program-src', class:"InputBox W700 H150", placeholder:"请贴入你的代码", rows: 10 %>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
var text = document.getElementById("program-src");
|
|
|
|
|
|
|
|
autoTextarea(text);// 调用
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mt10">
|
|
|
|
<div class="mt10">
|
|
|
|
<a href="javascript:void(0);" class="BlueCirBtn fl" data-homework-id="<%=@homework.id%>" data-student-work-id="<%=@student_work.id%>" id="test-program-btn">测试代码</a>
|
|
|
|
<a href="javascript:void(0);" class="BlueCirBtn fl" data-homework-id="<%=@homework.id%>" data-student-work-id="<%=@student_work.id%>" id="test-program-btn">测试代码</a>
|
|
|
|