Commit 32257b99ca751af0bf4129749f54992ea4884f69

Authored by Victor Costa
1 parent 71ffaa1a

Added lead and body edition with tinymce

views/cms/proposals_discussion_plugin/_discussion.html.erb
... ... @@ -2,10 +2,13 @@
2 2  
3 3 <%= required_fields_message %>
4 4  
  5 +<%= render :file => 'shared/tiny_mce' %>
  6 +
5 7 <%= required f.text_field('name', :size => '64', :maxlength => 150) %>
6 8 <%= render :partial => 'general_fields' %>
7 9  
8   -<%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %>
  10 +<%= render :partial => 'shared/lead_and_body', :locals => {:tiny_mce => true} %>
  11 +<%#= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %>
9 12  
10 13 <%= f.text_field(:custom_body_label) %>
11 14 <%= labelled_form_field _('Current Phase'), f.select(:phase, ProposalsDiscussionPlugin::Discussion::AVAILABLE_PHASES.map{|k,v| [v,k]} ) %>
... ...