From 19b41c684fb74a80a780ecffc933de0810d40c3c Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Thu, 26 Mar 2015 15:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E5=9C=A8=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E8=AE=BA=E5=9D=9B=E5=92=8C=E7=BC=96=E8=BE=91=E5=8E=9F?= =?UTF-8?q?=E6=9D=A5=E7=9A=84=E8=AE=BA=E5=9D=9B=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=EF=BC=8C=E6=9C=89=E6=89=80=E5=8C=BA=E5=88=AB=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E5=9C=A8=E4=BB=A3=E7=A0=81=E9=87=8C=E7=94=A8=E5=88=86?= =?UTF-8?q?=E6=94=AF=E5=88=A4=E6=96=AD=EF=BC=8C=E5=B0=B1=E7=94=A8=E4=BA=86?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/forums/_form_create_mode.html.erb | 51 +++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 app/views/forums/_form_create_mode.html.erb diff --git a/app/views/forums/_form_create_mode.html.erb b/app/views/forums/_form_create_mode.html.erb new file mode 100644 index 000000000..63162c7a0 --- /dev/null +++ b/app/views/forums/_form_create_mode.html.erb @@ -0,0 +1,51 @@ + + + +
+ <%= labelled_form_for(@forum) do |f| %> + <% if @forum.errors.any? %> + + <% end %> +
+
+ <%= f.text_field :name, :required => true, :style => 'width: 100%;', :class => 'create-share', :maxlength => 50%> +
+
+ <% if User.current.logged? && User.current.admin? %> + <% if @forum.safe_attribute? 'sticky' %> + <%= f.check_box :sticky %> + <%= label_tag 'message_sticky', l(:label_board_sticky) %> + <% end %> + <% if @forum.safe_attribute? 'locked' %> + <%= f.check_box :locked %> + <%= label_tag 'message_locked', l(:label_board_locked) %> + <% end %> + <% end %> +
+
+ + <%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %> +

+ <%= f.kindeditor :description, :required => true %> +

+ + +

+ (<%= l(:label_forums_max_length) %>) +

+
+
+ <%= submit_tag l(:button_submit) %> + <%= link_to l(:button_back), forums_path ,:style => 'font-size: 14px; padding: 0px 3px;' %> +
+
+ <% end %> +