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