diff options
author | francis <francis> | 2008-01-03 18:40:39 +0000 |
---|---|---|
committer | francis <francis> | 2008-01-03 18:40:39 +0000 |
commit | 75b1cb7e1678ad0949020f549acd464ce4d38155 (patch) | |
tree | 9882ff061b7937567463976dc2177af889548367 | |
parent | 0ee99f7b986b76b11434f03ebab507de4f20c156 (diff) |
Button to file a new request.
-rw-r--r-- | app/views/body/show.rhtml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/body/show.rhtml b/app/views/body/show.rhtml index 84ee2a617..7b5a905fa 100644 --- a/app/views/body/show.rhtml +++ b/app/views/body/show.rhtml @@ -6,6 +6,11 @@ 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| %> + <%= f.hidden_field(:public_body_id, { :value => @public_body.id } ) %> + <p><%= 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> |