From 53cd3a197b08583b671c13b5bbf8772c49476e46 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 30 Dec 2016 13:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E5=90=A7=E7=BC=96=E8=BE=91=E5=92=8C?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E4=BB=A3=E7=A0=81=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/forums/_edit.html.erb | 2 +- app/views/forums/_form.html.erb | 9 +++-- app/views/forums/_new.html.erb | 64 ++------------------------------- 3 files changed, 7 insertions(+), 68 deletions(-) diff --git a/app/views/forums/_edit.html.erb b/app/views/forums/_edit.html.erb index 234c965e2..5e8db19a5 100644 --- a/app/views/forums/_edit.html.erb +++ b/app/views/forums/_edit.html.erb @@ -6,7 +6,7 @@
<%= labelled_form_for @forum, :html => {:id => "forum_new"} do |f| %> - <%= render :partial => "forums/form" %> + <%= render :partial => "forums/form", :locals => {:f => f} %> <% end %> <%#= form_tag({:controller => 'forums', :action => 'create'}, :method => 'post', :id => "forum_new") do |f| %> diff --git a/app/views/forums/_form.html.erb b/app/views/forums/_form.html.erb index ec05d74a4..35d202a79 100644 --- a/app/views/forums/_form.html.erb +++ b/app/views/forums/_form.html.erb @@ -2,14 +2,14 @@
  • - + <%= f.text_field :name, :label => "", :name => "forum[name]", :id => "forum_name", :class => "issues_calendar_input fl", :style => "width:320px;height:28px;", :placeholder => "请输入贴吧名称,最多50个字符", :onfocus => "$('#forum_name_error_tips').hide();" %> +
  • - - + <%= f.text_area :description, :label => "", :maxlength => "5000", :name => "forum[description]", :id => "forum_desc", :class => "mr15 mb10 fl newupload_textarea", :style => "width:320px;height:100px;", :placeholder => "请输入新建贴吧描述,最多5000个字符", :onfocus => "$('#forum_description_error_tips').hide();" %>
  • @@ -20,6 +20,7 @@ 确定
    + \ No newline at end of file