diff options
author | francis <francis> | 2008-02-21 18:49:55 +0000 |
---|---|---|
committer | francis <francis> | 2008-02-21 18:49:55 +0000 |
commit | ab9d0c103031adcfcc5e6b28876e01b048c04319 (patch) | |
tree | 5bdb3f07ee289c0c2d52e5f3fb76e05aade073b1 | |
parent | 8dd3cd7bf031586057b5b358070b0f383197000e (diff) |
Make button on public body page into a link.
-rw-r--r-- | app/views/body/show.rhtml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/views/body/show.rhtml b/app/views/body/show.rhtml index 44677548e..57eab266e 100644 --- a/app/views/body/show.rhtml +++ b/app/views/body/show.rhtml @@ -6,12 +6,9 @@ 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 %> +<p> +<%= link_to "Make new FOI request to " + @public_body.short_name, new_request_to_body_url(:public_body_id => @public_body.id.to_s)%> +</p> <% if @public_body.info_requests.empty? %> <p>Nobody has made any Freedom of Information requests to this public body using this site.</p> |