From 8c272d879837c5919a0761cc573ab48084b79926 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 9 Dec 2015 10:39:29 -0300 Subject: [PATCH] Add image to response --- views/cms/proposals_discussion_plugin/_response.html.erb | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/views/cms/proposals_discussion_plugin/_response.html.erb b/views/cms/proposals_discussion_plugin/_response.html.erb index 8d3d75c..1d484c9 100644 --- a/views/cms/proposals_discussion_plugin/_response.html.erb +++ b/views/cms/proposals_discussion_plugin/_response.html.erb @@ -20,6 +20,13 @@ <%= labelled_form_field(_('Response'), text_area(:article, :body, :class => 'mceEditor')) %> +
+ <%= f.fields_for :image_builder, @article.image do |i| %> + <%= file_field_or_thumbnail(_('Image:'), @article.image, i)%> + <%= _("Max size: %s (.jpg, .gif, .png)")% Image.max_size.to_humanreadable %> + <% end %> +
+