Commit 8c272d879837c5919a0761cc573ab48084b79926

Authored by Victor Costa
1 parent 84935c94

Add image to response

views/cms/proposals_discussion_plugin/_response.html.erb
... ... @@ -20,6 +20,13 @@
20 20 <%= labelled_form_field(_('Response'), text_area(:article, :body, :class => 'mceEditor')) %>
21 21 </div>
22 22  
  23 + <div id="response-image-builder">
  24 + <%= f.fields_for :image_builder, @article.image do |i| %>
  25 + <%= file_field_or_thumbnail(_('Image:'), @article.image, i)%>
  26 + <%= _("Max size: %s (.jpg, .gif, .png)")% Image.max_size.to_humanreadable %>
  27 + <% end %>
  28 + </div>
  29 +
23 30 </div>
24 31  
25 32 <script>
... ...