aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/index/index.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/index/index.rhtml')
-rw-r--r--app/views/index/index.rhtml21
1 files changed, 18 insertions, 3 deletions
diff --git a/app/views/index/index.rhtml b/app/views/index/index.rhtml
index 65ba3a2e8..f44aa95b3 100644
--- a/app/views/index/index.rhtml
+++ b/app/views/index/index.rhtml
@@ -1,5 +1,20 @@
+<div id="frontpage">
-<p id="explanation">Make requests for information from the UK Government
-<br>Find information that others requested
-</p>
+ <div id="make_requests">
+ <h1>Make requests for information from the UK Government</h1>
+ <% form_for(:info_request, @info_request, :url => { :controller => :new, :action => :index }, :html => { :id => 'public_body_form', :class => 'plaque' } ) do |f| %>
+ <p>Choose which public body you would like information from.</p>
+ <%= @public_bodies = PublicBody.find(:all, :order => "name")
+ f.collection_select(:public_body_id, @public_bodies, :id, :name) %>
+ <p><%= submit_tag "Submit >>" %></p>
+ <% end %>
+ </div>
+
+ <div id="find_information">
+ <h1>Find information that others requested</h1>
+ <p><a href="/list">View all information</a></p>
+ </div>
+
+
+</div>