From 32257b99ca751af0bf4129749f54992ea4884f69 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 20 Apr 2015 15:30:09 -0300 Subject: [PATCH] Added lead and body edition with tinymce --- views/cms/proposals_discussion_plugin/_discussion.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/cms/proposals_discussion_plugin/_discussion.html.erb b/views/cms/proposals_discussion_plugin/_discussion.html.erb index ab922e3..8debead 100644 --- a/views/cms/proposals_discussion_plugin/_discussion.html.erb +++ b/views/cms/proposals_discussion_plugin/_discussion.html.erb @@ -2,10 +2,13 @@ <%= required_fields_message %> +<%= render :file => 'shared/tiny_mce' %> + <%= required f.text_field('name', :size => '64', :maxlength => 150) %> <%= render :partial => 'general_fields' %> -<%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %> +<%= render :partial => 'shared/lead_and_body', :locals => {:tiny_mce => true} %> +<%#= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %> <%= f.text_field(:custom_body_label) %> <%= labelled_form_field _('Current Phase'), f.select(:phase, ProposalsDiscussionPlugin::Discussion::AVAILABLE_PHASES.map{|k,v| [v,k]} ) %> -- libgit2 0.21.2