blob: 44677548e860f7d77207cdc413aadce8147a5ad4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<% @title = h(@public_body.name) %>
<h1><%=@title%></h1>
<p class="subtitle">
A public body in the UK, also called <%= h(@public_body.short_name) %>
</p>
<% form_for(:info_request, @info_request, :url => new_request_url, :html => { :id => 'public_body_form' } ) do |f| %>
<p>
<%= f.hidden_field(:public_body_id, { :value => @public_body.id } ) %>
<%= submit_tag "Make new FOI request to " + @public_body.short_name %>
</p>
<% end %>
<% if @public_body.info_requests.empty? %>
<p>Nobody has made any Freedom of Information requests to this public body using this site.</p>
<% else %>
<p>People have made <%=pluralize(@public_body.info_requests.size, "Freedom of Information request") %> to this public body using this site.</p>
<%= render :partial => 'request/request_listing', :locals => { :info_requests => @public_body.info_requests.sort { |a,b| b.created_at <=> a.created_at } } %>
<% end %>
|