Commit 89db73699b887a9d5f7186d18b8d82d4421ed522

Authored by Leandro Santos
1 parent 32e6b1fe

adding lead and body fields

views/cms/proposals_discussion_plugin/_topic.html.erb
... ... @@ -4,15 +4,13 @@
4 4  
5 5 <%= required_fields_message %>
6 6  
  7 +<%= render :file => 'shared/tiny_mce' %>
  8 +
7 9 <%= required f.text_field('name', :size => '64', :maxlength => 150) %>
8 10 <%= render :partial => 'general_fields' %>
9 11  
10   -<%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %>
  12 +<%= render :partial => 'shared/lead_and_body', :locals => {:tiny_mce => true} %>
11 13  
12 14 <%= labelled_colorpicker_field(_('Color:'), :article, :color) %>
13 15 <span id="color_preview" class = "color_marker" style="background-color: <%= @article.color %>" ></span>
14 16  
15   -<%= f.fields_for :image_builder, @article.image do |i| %>
16   - <%= file_field_or_thumbnail(_('Image:'), @article.image, i)%>
17   - <%= _("Max size: %s (.jpg, .gif, .png)")% Image.max_size.to_humanreadable %>
18   -<% end %>
... ...