diff options
-rw-r--r-- | app/views/index/index.rhtml | 20 | ||||
-rw-r--r-- | app/views/list/index.rhtml | 23 | ||||
-rw-r--r-- | app/views/new/index.rhtml | 47 |
3 files changed, 0 insertions, 90 deletions
diff --git a/app/views/index/index.rhtml b/app/views/index/index.rhtml deleted file mode 100644 index f44aa95b3..000000000 --- a/app/views/index/index.rhtml +++ /dev/null @@ -1,20 +0,0 @@ -<div id="frontpage"> - - <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> diff --git a/app/views/list/index.rhtml b/app/views/list/index.rhtml deleted file mode 100644 index 47b3bfc55..000000000 --- a/app/views/list/index.rhtml +++ /dev/null @@ -1,23 +0,0 @@ -<% @title = "Recent Freedom of Information requests" %> - -<h2><%=@title%></h2> - -<table id="list_requests"> - <tr> - <th>Public body</th> - <th>Title</th> - <th>Requester</th> - <th>Created</th> - - </tr> - -<% for info_request in @info_requests %> - <tr class="<%= cycle('odd', 'even') %>"> - <td><%= link_to h(info_request.public_body.short_name), :controller => 'body', :action => 'show', :short_name => info_request.public_body.short_name %></td> - <td><%= link_to h(info_request.title), :controller => 'request', :action => 'index', :id => info_request %></td> - <td><%= link_to h(info_request.user.name), :controller => 'user', :action => 'index', :name => info_request.user.name %></td> - <td><%= simple_date(info_request.created_at) %></td> - </tr> -<% end %> -</table> - diff --git a/app/views/new/index.rhtml b/app/views/new/index.rhtml deleted file mode 100644 index b513c9a4c..000000000 --- a/app/views/new/index.rhtml +++ /dev/null @@ -1,47 +0,0 @@ -<% @title = "New FOI request" %> - -<%= foi_error_messages_for :info_request, :outgoing_message %> - -<% form_for(:info_request, @info_request, :url => { :action => :create }, :html => { :id => 'writeForm' } ) do |f| %> - - <label for="heading"> </label> - <h1>New Freedom of Information request</h1> - - <p> - <label for="public_body_id">Public body:</label> - <%= - @public_bodies = PublicBody.find(:all, :order => "name") - f.collection_select(:public_body_id, @public_bodies, :id, :name) - %> - </p> - - - <p> - <label for="info_request_title">Summary:</label> - <%= f.text_field :title, :size => 50 %> - </p> - <div class="form_note"> - (a one line summary of the information you are requesting, - <br>e.g. 'Crime statistics by ward level for Wales') - </div> - - <% fields_for :outgoing_message do |o| %> - <p> - <label for="outgoing_message_body">Your letter:</label> - <%= o.text_area :body, :rows => 20, :cols => 60 %> - </p> - <% end %> - - <p class="form_note"> - <strong>Privacy warning:</strong> All information that you enter, except - for your email address, will be displayed publically on this website. - </p> - - <div class="form_button"> - <%= submit_tag "Create public request >>" %> - </div> - - </div> -<% end %> - - |