diff options
Diffstat (limited to 'app/views/request/new.rhtml')
-rw-r--r-- | app/views/request/new.rhtml | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/app/views/request/new.rhtml b/app/views/request/new.rhtml index 883a3963f..8aa627194 100644 --- a/app/views/request/new.rhtml +++ b/app/views/request/new.rhtml @@ -1,4 +1,4 @@ -<% @title = "New FOI request" %> +<% @title = "New FOI request to '" + h(@info_request.public_body.name) + "'" %> <% if @existing_request %> <div class="errorExplanation" id="errorExplanation"><ul> @@ -21,8 +21,15 @@ <li>Use a <strong>search engine first</strong> to check that the information isn't already published. </li> <li>Write your request in <strong>simple, precise language</strong>. - <li>Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request. - </li> + <% if @info_request.public_body.info_requests.size > 0 %> + <li>Browse <%= link_to "other requests", public_body_url(@info_request.public_body) %> + to '<%= h(@info_request.public_body.name) %>' + for examples of how to word your request. + </li> + <% else %> + <li>Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request. + </li> + <% end %> <li>Keep it <strong>focussed</strong>, if you ask for everything it might cost too much and you might get nothing. </li> @@ -34,11 +41,8 @@ </div> <p> - <label class="form_label" for="info_request_public_body_id">Public body:</label> - <%= - @public_bodies = PublicBody.find(:all, :order => "name") - f.collection_select(:public_body_id, @public_bodies, :id, :name) - %> + <label class="form_label" for="info_request_public_body_id">To:</label> + <h2><%=h(@info_request.public_body.name)%></h2> </p> @@ -65,6 +69,7 @@ </p> <div class="form_button"> + <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %> <%= hidden_field_tag(:submitted_new_request, { :value => 1 } ) %> <%= submit_tag "Make public Freedom of Information request >>" %> </div> |