Commit 32257b99ca751af0bf4129749f54992ea4884f69
1 parent
71ffaa1a
Exists in
master
and in
9 other branches
Added lead and body edition with tinymce
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
views/cms/proposals_discussion_plugin/_discussion.html.erb
@@ -2,10 +2,13 @@ | @@ -2,10 +2,13 @@ | ||
2 | 2 | ||
3 | <%= required_fields_message %> | 3 | <%= required_fields_message %> |
4 | 4 | ||
5 | +<%= render :file => 'shared/tiny_mce' %> | ||
6 | + | ||
5 | <%= required f.text_field('name', :size => '64', :maxlength => 150) %> | 7 | <%= required f.text_field('name', :size => '64', :maxlength => 150) %> |
6 | <%= render :partial => 'general_fields' %> | 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 | <%= f.text_field(:custom_body_label) %> | 13 | <%= f.text_field(:custom_body_label) %> |
11 | <%= labelled_form_field _('Current Phase'), f.select(:phase, ProposalsDiscussionPlugin::Discussion::AVAILABLE_PHASES.map{|k,v| [v,k]} ) %> | 14 | <%= labelled_form_field _('Current Phase'), f.select(:phase, ProposalsDiscussionPlugin::Discussion::AVAILABLE_PHASES.map{|k,v| [v,k]} ) %> |