From e95b95e78891e2c0e7e0307464637b38ed8b5a4d Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Wed, 27 Nov 2013 17:44:35 +0000 Subject: Update notices for offline sending. --- app/controllers/request_controller.rb | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'app/controllers/request_controller.rb') diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 2bf1a2c0c..b3522ac54 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -247,24 +247,14 @@ class RequestController < ApplicationController @info_request_batch = InfoRequestBatch.create!(:title => params[:info_request][:title], :body => params[:outgoing_message][:body], :public_bodies => @public_bodies, - :user => authenticated_user ) - - batch_results = @info_request_batch.create_batch! - flash[:notice] = _("

Your {{law_used_full}} requests have been sent!

-

We will email you when there is a response to any of them, or after {{late_number_of_days}} working days if the authorities still haven't + :user => authenticated_user) + flash[:notice] = _("

Your {{law_used_full}} requests will be sent shortly!

+

We will email you when they have been sent. + We will also email you when there is a response to any of them, or after {{late_number_of_days}} working days if the authorities still haven't replied by then.

If you write about these requests (for example in a forum or a blog) please link to this page.

", :law_used_full=>@info_request.law_used_full, :late_number_of_days => AlaveteliConfiguration::reply_late_after_days) - if ! batch_results[:unrequestable].empty? - error_messages = [] - error_messages << _('Unfortunately, we do not have a working address for {{public_body_names}}.', - :public_body_names => batch_results[:unrequestable].map{|body| body.name}.join(",")) - error_messages << _('You may be able to find one on their website, or by phoning them up and asking. If you manage - to find one, then please send it to us.', - :help_url => help_contact_path) - flash[:error] = error_messages.map{ |message| "

#{message}

"}.join(" ").html_safe - end redirect_to info_request_batch_path(@info_request_batch) end -- cgit v1.2.3