From 3d1f7cc0a89884b9467f44e3271c0c8083ab32db Mon Sep 17 00:00:00 2001 From: cxt Date: Mon, 14 Mar 2016 15:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BD=9C=E5=93=81=EF=BC=9A?= =?UTF-8?q?=E4=BD=9C=E5=93=81=E6=A0=87=E9=A2=98=E8=AE=BE=E7=BC=BA=E7=9C=81?= =?UTF-8?q?=E5=80=BC=EF=BC=9A=E4=BD=9C=E4=B8=9A=E5=90=8D=E7=A7=B0+?= =?UTF-8?q?=E2=80=9C=E7=9A=84=E4=BD=9C=E5=93=81=E6=8F=90=E4=BA=A4=E2=80=9D?= =?UTF-8?q?=E3=80=82=E5=AD=A6=E7=94=9F=E4=B8=8D=E6=94=B9=E5=B0=B1=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=BC=BA=E7=9C=81=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/new.html.erb | 2 +- app/views/users/new_user_commit_homework.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/student_work/new.html.erb b/app/views/student_work/new.html.erb index 5d2b134a8..9391aab37 100644 --- a/app/views/student_work/new.html.erb +++ b/app/views/student_work/new.html.erb @@ -127,7 +127,7 @@ <%=hidden_field_tag 'group_member_ids', params[:group_member_ids], :value=>User.current.id %> <% end %>
- <%= f.text_field "name", :required => true, :size => 60, :class => "InputBox W700", :maxlength => 200, :placeholder => "请输入作品名称", :onkeyup => "regexStudentWorkName();" %> + <%= f.text_field "name", :required => true, :size => 60, :class => "InputBox W700", :maxlength => 200, :placeholder => "请输入作品名称",:value=>"#{@homework.name}的作品提交", :onkeyup => "regexStudentWorkName();" %>

diff --git a/app/views/users/new_user_commit_homework.html.erb b/app/views/users/new_user_commit_homework.html.erb index 3c0c4969b..f8ce5cee4 100644 --- a/app/views/users/new_user_commit_homework.html.erb +++ b/app/views/users/new_user_commit_homework.html.erb @@ -85,7 +85,7 @@ style="display-hidden" id="data-language">
- <%= f.text_area :name, id: 'program-title', class:"InputBox W700", placeholder:"请概括你的代码的功能" %> + <%= f.text_area :name, id: 'program-title', class:"InputBox W700", placeholder:"请概括你的代码的功能", value:"#{@homework.name}的作品提交" %>
<%= f.text_area :description, id: 'program-src', class:"InputBox W700 H150", placeholder:"请贴入你的代码", rows: 10 %>