diff options
-rw-r--r-- | app/models/info_request.rb | 4 | ||||
-rw-r--r-- | app/views/request/_followup.rhtml | 32 | ||||
-rw-r--r-- | app/views/request/show.rhtml | 15 | ||||
-rw-r--r-- | todo.txt | 15 |
4 files changed, 33 insertions, 33 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 5b0140348..fae8441db 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -729,9 +729,9 @@ public elsif status == 'waiting_response' "Awaiting response." elsif status == 'waiting_response_overdue' - "Response delayed." + "Delayed." elsif status == 'waiting_response_very_overdue' - "Response overdue." + "Long overdue." elsif status == 'not_held' "Information not held." elsif status == 'rejected' diff --git a/app/views/request/_followup.rhtml b/app/views/request/_followup.rhtml index f18dd32f3..b375befd1 100644 --- a/app/views/request/_followup.rhtml +++ b/app/views/request/_followup.rhtml @@ -31,25 +31,25 @@ request '<%= request_link(@info_request) %>'. If you would like to ask for information that was not in your original request, then <%= link_to "file a new request", new_request_to_body_url(:public_body_id => @info_request.public_body.id.to_s) %>. + </p> - <% if @info_request.calculate_status == 'waiting_response_overdue' || @info_request.calculate_status == 'waiting_response_very_overdue' %> - <p> - <% if @info_request.calculate_status == 'waiting_response_very_overdue' %> - This request is <strong>long overdue a response</strong>. - <% else %> - This request is <strong>overdue a response</strong>. - <% end %> - You can say that, by law, the authority should have answered - <strong>promptly</strong>. If they have not given you a legal - reason why they need extra time - (<%= link_to "more details", about_url + "#quickly_response" %>), then - you can say they are breaking the law to have not replied by - <strong><%= simple_date(@info_request.date_response_required_by) %></strong>. + <% status = @info_request.calculate_status %> + <% if status == 'waiting_response_overdue' %> + <p>The response to your request has been <strong>delayed</strong>. You can say that, + by law, the authority should normally have responded + <strong>promptly</strong> and <% if @info_request.public_body.is_school? %> - This is a school, so legally they get lots of extra slack if it is - holiday time. + in term time <% end %> - </p> + by <strong><%= simple_date(@info_request.date_response_required_by) %></strong> + (<%= link_to "details", about_url + "#quickly_response" %>). + </p> + <% elsif status == 'waiting_response_very_overdue' %> + <p> + The response to your request is <strong>long overdue</strong>. You can say that, by + law, under all circumstances, the authority should have responded + by now (<%= link_to "details", about_url + "#quickly_response" %>). + </p> <% end %> <% form_for(:outgoing_message, @outgoing_message, :html => { :id => 'followup_form' }, :url => incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => incoming_message.id)) do |o| %> diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml index e6e1fbcd1..28cde61ba 100644 --- a/app/views/request/show.rhtml +++ b/app/views/request/show.rhtml @@ -66,20 +66,17 @@ (<%= link_to "details", about_url + "#quickly_response" %>). <% elsif @status == 'waiting_response_overdue' %> Response to this request is <strong>delayed</strong>. - By law, <%= public_body_link(@info_request.public_body) %> + By law, <%= public_body_link(@info_request.public_body) %> should + normally have responded <strong>promptly</strong> and <% if @info_request.public_body.is_school? %> - in term time should - <% else %> - should normally + in term time <% end %> - have responded by - <strong><%= simple_date(@info_request.date_response_required_by) %></strong> + by <strong><%= simple_date(@info_request.date_response_required_by) %></strong> (<%= link_to "details", about_url + "#quickly_response" %>). <% elsif @status == 'waiting_response_very_overdue' %> - Response to this request is <strong>overdue</strong>. + Response to this request is <strong>long overdue</strong>. By law, under all circumstances, <%= public_body_link(@info_request.public_body) %> - should have responded by - <%= simple_date(@info_request.date_very_overdue_after) %> + should have responded by now (<%= link_to "details", about_url + "#quickly_response" %>). You can <strong>complain</strong> by <%= link_to "requesting an internal review", show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>. @@ -13,22 +13,22 @@ s = IncomingMessage.find(2); text = s.get_main_body_text_internal; s.cached_main Public interest test ==================== -Go through - ./views/request/_followup.rhtml +Go through cases in both these and fix up to reflect main ones: ./controllers/request_controller.rb - make it so it uses right date display Do tests -Check display for schools -Strip "normally" for Scotland +Check display for schools (of i) request pages, ii) search pages, iii) followup, iv) status set confirmation ) + i) ./request/show.rhtml + ii) ./models/info_request.rb + iii) ./views/request/_followup.rhtml + iv) ./controllers/request_controller.rb Send email at 40 days models/request_mailer.rb self.alert_overdue_requests models/request_mailer.rb overdue_alert ./models/user_info_request_sent_alert.rb - add very_overdue_1 - - Environmental Information Regulations allow for an extension but not an indefinite extension: "Where a request is made under regulation 5, the public authority may @@ -72,6 +72,9 @@ PID: 2036 CONSUME MEMORY: 129368 KB Now: 179652 KB http://www.whatd Next (things that will reduce admin time mainly) ==== +For Scotland, don't need to say "normally" equivocally when it is taking more than 20 days +(as there is no public interest test). + Ask people for annotation immediately after they have submitted their request Ask for annotation about what they learnt from request? |