From 66d67e2cc9e67414020db0cdfa282eb0a49d72e5 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 30 Dec 2014 14:14:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=9A=E7=9F=A5=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E4=B8=BB=E9=A2=98=E6=9C=80=E5=A4=9A=E4=B8=BA60?= =?UTF-8?q?=E4=B8=AA=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/news/_course_form.html.erb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/views/news/_course_form.html.erb b/app/views/news/_course_form.html.erb index ba083217c..ea66f4e44 100644 --- a/app/views/news/_course_form.html.erb +++ b/app/views/news/_course_form.html.erb @@ -3,10 +3,15 @@ <%= is_new ? l(:bale_news_notice):l(:bale_edit_notice)%>
<%= f.text_field :title, :required => true, :size => 60, :style => "width:468px;", :onkeyup => "regexTitle();" %>
-(60个字符以内)
- -<%= f.text_area :description, :required => true, :cols => 60, :rows => 11, :class => 'wiki-edit', :style => "width:470px;", :onkeyup => "regexDescription();" %>
++ <%= f.text_field :title, :required => true, :size => 60, :style => "width:468px;", :onkeyup => "regexTitle();", :maxlength => 60 %> +
++ (60个字符以内) +
++ <%= f.text_area :description, :required => true, :cols => 60, :rows => 11, :class => 'wiki-edit', :style => "width:470px;", :onkeyup => "regexDescription();" %> +
<%= render :partial => 'attachments/form', :locals => {:container => @news} %>