From 227a7c1f3141262986ea560dc98eddfa003b8245 Mon Sep 17 00:00:00 2001 From: z9hang Date: Wed, 12 Nov 2014 17:02:35 +0800 Subject: [PATCH] =?UTF-8?q?z=E4=BD=9C=E4=B8=9A=E7=95=99=E8=A8=80=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E6=95=B0=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/homework_attach/_addjour.html.erb | 4 ++- app/views/homework_attach/_show.html.erb | 38 ++++++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/app/views/homework_attach/_addjour.html.erb b/app/views/homework_attach/_addjour.html.erb index cbc189ef5..5b2889b57 100644 --- a/app/views/homework_attach/_addjour.html.erb +++ b/app/views/homework_attach/_addjour.html.erb @@ -69,7 +69,9 @@ <% if User.current.logged? %> <%= f.text_area 'user_message', :rows => 3, :cols => 65, - :style => "resize: none;", :class => 'noline', :placeholder => l(:text_caracters_maximum,:count=>250)%> + :style => "resize: none;", :class => 'noline', :placeholder => l(:text_caracters_maximum,:count=>250), + :maxlength => 250 + %> <%= f.text_field :reference_user_id, :style=>"display:none"%>
<%= l(:label_submit_comments) %> diff --git a/app/views/homework_attach/_show.html.erb b/app/views/homework_attach/_show.html.erb index c0b397483..bce3e4d03 100644 --- a/app/views/homework_attach/_show.html.erb +++ b/app/views/homework_attach/_show.html.erb @@ -1,6 +1,42 @@ <% reply_allow = JournalsForMessage.create_by_user? User.current %> +