<% if @internal_review %>

Request an internal review from <%=h RequestMailer.name_for_followup(@info_request, nil) %>

<% elsif incoming_message.nil? || !incoming_message.valid_to_reply_to? %>

Send a public follow up message to <%=h RequestMailer.name_for_followup(@info_request, nil) %>

<% else %>

Send a public reply to <%=h RequestMailer.name_for_followup(@info_request, incoming_message) %>

<% end %> <% if @info_request.stop_new_responses %>

Follow ups and new responses to this request have been stopped to prevent spam. Please contact us if you are <%= user_link(@info_request.user) %> and need to send a follow up.

<% else %> <% if @internal_review %>

If you are dissatisfied by the response you got from the public authority, you have the right to complain (details).

<% end %> <% if @info_request.calculate_status == 'waiting_response_overdue' %>

This request is currently overdue a response from <%= public_body_link(@info_request.public_body) %>. By law, the response had to be prompt but no later than <%= simple_date(@info_request.date_response_required_by) %> (<%= link_to "more info", about_url + "#quickly_response" %>). You can say that under the <%=h(@info_request.law_used_act)%> they should have replied by now, and are breaking the law.

<% 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| %>

<%= o.text_area :body, :rows => 10, :cols => 55 %>

<% if @internal_review %> <%= hidden_field_tag "outgoing_message[what_doing]", "internal_review" %> <% else %>

What are you doing?

<% if !@outgoing_message.errors[:what_doing_dummy].nil? %>
<% else %>
<% end %>
<%= radio_button "outgoing_message", "what_doing", "internal_review", :id => "internal_review" %>
<%= radio_button "outgoing_message", "what_doing", "normal_sort", :id => "sort_normal" %>
<% end %> <% if @internal_review %>

Edit and add more details to the message above, explaining why you would like a review.

<% end %>

<%= hidden_field_tag 'submitted_followup', 1 %> <%= hidden_field_tag(:preview, 1 ) %> <% if @internal_review_pass_on %> <%= hidden_field_tag(:internal_review, 1 ) %> <% end %> <%= submit_tag "Preview your message" %>

<% end %>

<% if not @is_owning_user %> (You will be asked to sign in as <%= user_link(@info_request.user) %>) <% end %>

<% end %>