aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/info_request_batch/_batch_sent.html.erb2
-rw-r--r--app/views/public_body/_search_ahead.html.erb22
-rw-r--r--app/views/public_body/show.html.erb146
-rw-r--r--app/views/request/_request_filter_form.html.erb8
-rw-r--r--app/views/request/_request_sent.html.erb4
-rw-r--r--app/views/request/_search_ahead.html.erb10
-rw-r--r--app/views/request/new.html.erb328
-rw-r--r--app/views/request/preview.html.erb112
-rw-r--r--app/views/request/select_authorities.html.erb4
-rw-r--r--app/views/request/select_authority.html.erb7
10 files changed, 348 insertions, 295 deletions
diff --git a/app/views/info_request_batch/_batch_sent.html.erb b/app/views/info_request_batch/_batch_sent.html.erb
index 1bf51962f..eed93916d 100644
--- a/app/views/info_request_batch/_batch_sent.html.erb
+++ b/app/views/info_request_batch/_batch_sent.html.erb
@@ -6,7 +6,7 @@
<p>
<%= _("<strong>We will email you</strong> when they have been sent. " \
"We will also email you when there is a response to any of them, or " \
- "after {{late_number_of_days}} working days if the authorities still" \
+ "after {{late_number_of_days}} working days if the authorities still " \
"haven't replied by then.",
:late_number_of_days => AlaveteliConfiguration::reply_late_after_days) %>
</p>
diff --git a/app/views/public_body/_search_ahead.html.erb b/app/views/public_body/_search_ahead.html.erb
index b06ed5efa..e1465bb15 100644
--- a/app/views/public_body/_search_ahead.html.erb
+++ b/app/views/public_body/_search_ahead.html.erb
@@ -1,16 +1,18 @@
<% if !@xapian_requests.nil? %>
<% if @xapian_requests.results.size > 0 %>
- <h3><%= _('Top search results:') %></h3>
+ <p><%= _('Matching authorities') %></p>
<% else %>
- <h3><%= _('No results found.') %></h3>
+ <p><%= _('No results found.') %></p>
<% end %>
- <div id="authority_search_ahead_results">
- <% for result in @xapian_requests.results %>
- <%= render :partial => 'public_body/body_listing_single',
- :locals => { :public_body => result[:model],
- :request_link => true } %>
- <% end %>
- </div>
- <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @xapian_requests.matches_estimated), :params => {:controller=>"request", :action => "select_authority"} %>
+ <div class="authority_search_ahead_results_container">
+ <div id="authority_search_ahead_results">
+ <% for result in @xapian_requests.results %>
+ <%= render :partial => 'public_body/body_listing_single',
+ :locals => { :public_body => result[:model],
+ :request_link => true } %>
+ <% end %>
+ </div>
+ <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @xapian_requests.matches_estimated), :params => {:controller=>"request", :action => "select_authority"} %>
+ </div>
<% end %>
diff --git a/app/views/public_body/show.html.erb b/app/views/public_body/show.html.erb
index e7c5fa2b6..5c11c9428 100644
--- a/app/views/public_body/show.html.erb
+++ b/app/views/public_body/show.html.erb
@@ -1,65 +1,87 @@
<% @title = h(@public_body.name) + _(" - view and make Freedom of Information requests") %>
-<div id="main_content">
-
- <% if flash[:search_params] %>
- <div class="back-to-results">
- <div class="message">
- <%= link_to select_authority_path(flash[:search_params]) do %>
- <%= _('« Back to search results') %>
- <% end %>
- </div>
- </div>
- <% end %>
-
- <div id="header_right">
- <h2><%= _('Follow this authority')%></h2>
-
- <% follower_count = TrackThing.count(:all, :conditions => ["public_body_id = ?", @public_body.id]) %>
- <p>
- <%= n_("{{count}} person is following this authority",
- "{{count}} people are following this authority",
- follower_count,
- :count => content_tag(:span, follower_count, :id => "follow_count")) %>
- </p>
- <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %>
- <%= render :partial => 'track/rss_feed', :locals => { :track_thing => @track_thing, :location => 'sidebar' } %>
- <%= render :partial => 'more_info', :locals => { :public_body => @public_body } %>
+<% if flash[:search_params] %>
+ <div class="back-to-results">
+ <div class="message">
+ <%= link_to select_authority_path(flash[:search_params]) do %>
+ <%= _('« Back to search results') %>
+ <% end %>
</div>
+ </div>
+<% end %>
- <div id="header_left">
- <p class="public-body-name-prefix"><%= _("Freedom of information requests to") %></p>
- <h1><%=h(@public_body.name)%></h1>
-
- <p class="subtitle">
+<div class="authority__header">
+ <h1><%=h(@public_body.name)%></h1>
+ <p class="authority__header__subtitle">
<%=@public_body.type_of_authority(true)%><% if not @public_body.short_name.empty? %>,
<%= _('also called {{public_body_short_name}}', :public_body_short_name => h(@public_body.short_name))%><% end %>
<% if !@user.nil? && @user.admin_page_links? %>
(<%= link_to _("admin"), admin_body_path(@public_body) %>)
<% end %>
+ </p>
+
+ <% if @public_body.has_notes? || @public_body.eir_only? || @public_body.special_not_requestable_reason? %>
+ <div id="stepwise_make_request">
+ <% if @public_body.has_notes? %>
+ <p class="authority__header__notes">
+ <%= @public_body.notes_as_html.html_safe %>
</p>
+ <% end %>
- <div id="stepwise_make_request">
- <% if @public_body.has_notes? %>
- <%= @public_body.notes_as_html.html_safe %>
- <% end %>
+ <% if @public_body.is_requestable? %>
+ <% if @public_body.eir_only? %>
+ <p class="authority__header__notes">
+ <%= _('You can only request information about the environment from this authority.')%>
+ </p>
+ <% end %>
+ <% elsif @public_body.special_not_requestable_reason? %>
+ <p class="authority__header__notes">
+ <%= public_body_not_requestable_reasons(@public_body).first %>
+ </p>
+ <% end %>
+ </div>
+ <% end %>
- <% if @public_body.is_requestable? %>
- <% if @public_body.eir_only? %>
- <p><%= _('You can only request information about the environment from this authority.')%></p>
- <% end %>
+ <% if @public_body.info_requests.size > 0 %>
+ <div class="authority__header__stats">
+ <%= n_('{{count}} request',
+ '{{count}} requests',
+ @public_body.info_requests.size,
+ :count => @public_body.info_requests.size) %>
+ </div>
+ <% end %>
- <%= link_to _("Make a request to this authority"),
- new_request_to_body_path(:url_name => @public_body.url_name),
- :class => "link_button_green" %>
- <% else %>
- <p><%= public_body_not_requestable_reasons(@public_body).first %></p>
- <% end %>
+ <div class="authority__header__action-bar">
+ <div class="action-bar__make-request">
+ <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %>
+ <%= link_to _("Make a request to this authority"), new_request_to_body_path(:url_name => @public_body.url_name), :class => "link_button_green" %>
+ <% end %>
+ </div>
+ <div class="action-bar__follow">
+ <% follower_count = TrackThing.count(:all, :conditions => ["public_body_id = ?", @public_body.id]) %>
+ <div class="action-bar__follow-button">
+ <% if @existing_track %>
+ <%= (link_to _("Unsubscribe"), {:controller => 'track', :action => 'update', :track_id => @existing_track.id, :track_medium => "delete", :r => request.fullpath}, :class => "link_button_green") %>
+ <% else %>
+ <div class="feed_link">
+ <%= link_to _("Follow"), do_track_path(@track_thing), :class => "link_button_green" %>
+ </div>
+ <% end %>
+ </div>
+
+ <div class="action-bar__follower-count">
+ <%= n_("{{count}} follower",
+ "{{count}} followers",
+ follower_count,
+ :count => content_tag(:span, follower_count, :id => "follow_count")) %>
+ </div>
</div>
</div>
+</div>
- <div id="foi_results_section">
- <% if @public_body.info_requests.size == 0 %>
+<div class="authority__body">
+ <div class="authority__body__foi-results">
+ <% if @public_body.info_requests.size == 0 %>
<% if @public_body.is_requestable? or @public_body.not_requestable_reason != 'defunct' %>
<% if @public_body.eir_only? %>
<h2><%= _('Environmental Information Regulations requests made using this site') %></h2>
@@ -70,31 +92,18 @@
<% end %>
<% end %>
<% else %>
- <h2 class="foi_results">
- <% if @public_body.eir_only? %>
- <%= pluralize(@public_body.info_requests.size, "Environmental Information Regulations request made using this site") %>
- <% else %>
- <% if @public_body.info_requests.size > 4 %>
- <%= n_('Search within the {{count}} Freedom of Information requests to {{public_body_name}}', 'Search within the {{count}} Freedom of Information requests made to {{public_body_name}}', @public_body.info_requests.size, :count => @public_body.info_requests.size, :public_body_name => @public_body.name) %>
- <% else %>
- <%= n_('{{count}} Freedom of Information request to {{public_body_name}}',
- '{{count}} Freedom of Information requests to {{public_body_name}}',
- @public_body.info_requests.size,
- :count => @public_body.info_requests.size,
- :public_body_name => @public_body.name) %>
- <% end %>
- <% end %>
+ <% unless @page_desc.blank? %>
+ <h2 class="foi_results">
<%= @page_desc %>
- </h2>
+ </h2>
+ <% end %>
<a name="results"></a>
<% if @public_body.info_requests.size > 4 %>
- <%= render :partial => 'request/request_search_form',
- :locals => { :after_form_fields => render(:partial => 'request/request_filter_form') } %>
+ <%= render :partial => 'request/request_filter_form' %>
<% end %>
<% end %>
- <div style="clear:both">&nbsp;</div>
<% if !@xapian_requests.nil? %>
<% for result in @xapian_requests.results %>
@@ -121,4 +130,13 @@
<p> <%= _('The search index is currently offline, so we can\'t show the Freedom of Information requests that have been made to this authority.')%></p>
<% end %>
</div>
+
+ <div class="authority__body__sidebar">
+ <% if @public_body.info_requests.size > 4 %>
+ <%= render :partial => 'request/request_search_form' %>
+ <% end %>
+ <%= render :partial => 'more_info', :locals => { :public_body => @public_body } %>
+ <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %>
+ </div>
+
</div>
diff --git a/app/views/request/_request_filter_form.html.erb b/app/views/request/_request_filter_form.html.erb
index 0983c8c57..19961ddfc 100644
--- a/app/views/request/_request_filter_form.html.erb
+++ b/app/views/request/_request_filter_form.html.erb
@@ -1,21 +1,23 @@
<div class="list-filter-item">
- <h3 class="title"><%= _("Showing") %></h3>
<div class="filter-request-types">
+ <ul>
<% statuses = [["all", _("all requests")],
["successful", _("successful requests")],
["unsuccessful", _("unsuccessful requests")],
["awaiting", _("unresolved requests")]] %>
<% statuses.each do |status, label| %>
+ <li>
<% if params[:view] != status %>
<% if params[:controller] == "public_body" %>
<%= link_to label, url_for(:controller => "public_body", :action => "show", :view => status, :url_name => @public_body.url_name) + "?" + request.query_string + '#results' %>
<% else %>
- <%= link_to label, url_for(:controller => "request", :action => "list", :view => status) + "?" + request.query_string + '#results' %>
+ <%= link_to label, url_for(:controller => "request", :action => "list", :view => status) + "?" + request.query_string + '#results' %>
<% end %>
<% else %>
<%= label %>
<% end %>
- <%= "|" unless statuses.last[0] == status %>
+ </li>
<% end %>
+ </ul>
</div>
</div>
diff --git a/app/views/request/_request_sent.html.erb b/app/views/request/_request_sent.html.erb
index 3525ba2be..3bbf49446 100644
--- a/app/views/request/_request_sent.html.erb
+++ b/app/views/request/_request_sent.html.erb
@@ -24,7 +24,7 @@
:via => AlaveteliConfiguration.twitter_username,
:text => "'#{ @info_request.title }'",
:related => _('alaveteli_foi:The software that runs {{site_name}}', :site_name => site_name)
- }.to_query %>
+ }.to_query, :class => 'share-link' %>
<%= link_to image_tag("next-step-facebook.png",
:alt => _("Share on Facebook"),
@@ -32,7 +32,7 @@
:height => "37"),
"https://www.facebook.com/sharer/sharer.php?" << {
:u => request.url
- }.to_query %>
+ }.to_query, :class => 'share-link' %>
<h2><%= _("Keep your request up to date") %></h2>
<p>
diff --git a/app/views/request/_search_ahead.html.erb b/app/views/request/_search_ahead.html.erb
index 4fbe06ebc..397973d49 100644
--- a/app/views/request/_search_ahead.html.erb
+++ b/app/views/request/_search_ahead.html.erb
@@ -1,9 +1,8 @@
<% unless @xapian_requests.nil? %>
+<% if @xapian_requests.results.any? %>
<div id="request_search_ahead_results">
- <% if @xapian_requests.results.any? %>
<span class="close-button">X</span>
- <h3><%= _("Possibly related requests:") %></h3>
-
+ <h2><%= _("Possible related requests") %></h2>
<% @xapian_requests.results.each do |result| %>
<%= render :partial => 'request/request_listing_short_via_event',
:locals => { :event => result[:model],
@@ -15,6 +14,7 @@
<%= _("Search in their website for this information &rarr;") %>
</a>
</p>
- <% end %>
- </div>
+
+ </div>
+ <% end %>
<% end %>
diff --git a/app/views/request/new.html.erb b/app/views/request/new.html.erb
index 688d9e87b..cbcf5a0a5 100644
--- a/app/views/request/new.html.erb
+++ b/app/views/request/new.html.erb
@@ -19,11 +19,11 @@
// When following links in typeahead results, open new
// tab/window
$("#typeahead_response a").attr("target","_blank");
-
+
// Update the public body site search link
$("#body-site-search-link").attr("href", "http://www.google.com/#q="+encodeURI($("#typeahead_search").val())+
"+site:<%= @info_request.public_body.calculated_home_page %>");
-
+
$('.close-button').click(function() { $(this).parent().hide() });
}
});
@@ -31,184 +31,206 @@
});
</script>
<% end %>
+
+
+
<% if @batch %>
<% @title = _("Make an {{law_used_short}} request", :law_used_short=>h(@info_request.law_used_short)) %>
<% else %>
<% @title = _("Make an {{law_used_short}} request to '{{public_body_name}}'",:law_used_short=>h(@info_request.law_used_short),:public_body_name=>h(@info_request.public_body.name)) %>
<% end %>
- <h1><%= _('2. Ask for Information') %></h1>
-
- <% if @existing_request %>
- <div class="errorExplanation" id="errorExplanation"><ul>
- <li>
- <%= _('{{existing_request_user}} already
- created the same request on {{date}}. You can either view the <a href="{{existing_request}}">existing request</a>,
- or edit the details below to make a new but similar request.',:existing_request_user=>user_or_you_capital_link(@existing_request.user), :date=>simple_date(@existing_request.created_at), :existing_request=>request_path(@existing_request)) %>
- </li>
- </ul></div>
- <% end %>
- <% if @existing_batch %>
- <div class="errorExplanation" id="errorExplanation"><ul>
- <li>
- <%= _('You already created the same batch of requests on {{date}}. You can either view the <a href="{{existing_batch}}">existing batch</a>, or edit the details below to make a new but similar batch of requests.', :date=>simple_date(@existing_batch.created_at), :existing_batch=>info_request_batch_path(@existing_batch)) %>
- </li>
- </ul></div>
- <% end %>
- <%= foi_error_messages_for :info_request, :outgoing_message %>
- <%= form_for(@info_request, :url => (@batch ? new_batch_path : new_request_path), :html => { :id => 'write_form' } ) do |f| %>
-
- <div id="request_header">
- <div id="request_header_body">
- <label class="form_label"><%= _('To:') %></label>
-
- <% if @batch %>
- <span id="to_public_body">
- <%= _("Your selected authorities") %>
- <span class="batch_public_body_toggle" data-hidetext="<%= _("(hide)") %>" data-showtext="<%= _("(show)") %>"><a class="toggle-message"></a></span>
- </span>
-
- <div class="batch_public_body_list">
- <ul>
- <% @public_bodies.each do |public_body| %>
- <li><%= public_body.name %></li>
- <% end %>
- </ul>
- </div>
+<%= form_for(@info_request, :url => (@batch ? new_batch_path : new_request_path), :html => { :id => 'write_form' } ) do |f| %>
+ <div id="request_header">
+ <div id="request_header_body">
+ <h1><%= _('Make a request') %></h1>
+
+ <% if @existing_request %>
+ <div class="errorExplanation" id="errorExplanation">
+ <ul>
+ <li>
+ <%= _('{{existing_request_user}} already
+ created the same request on {{date}}. You can either view the <a href="{{existing_request}}">existing request</a>,
+ or edit the details below to make a new but similar request.',:existing_request_user=>user_or_you_capital_link(@existing_request.user), :date=>simple_date(@existing_request.created_at), :existing_request=>request_path(@existing_request)) %>
+ </li>
+ </ul>
+ </div>
+ <% end %>
+
+ <% if @existing_batch %>
+ <div class="errorExplanation" id="errorExplanation">
+ <ul>
+ <li>
+ <%= _('You already created the same batch of requests on {{date}}. You can either view the <a href="{{existing_batch}}">existing batch</a>, or edit the details below to make a new but similar batch of requests.', :date=>simple_date(@existing_batch.created_at), :existing_batch=>info_request_batch_path(@existing_batch)) %>
+ </li>
+ </ul>
+ </div>
+ <% end %>
- <% else %>
- <span id="to_public_body">
- <%=h(@info_request.public_body.name)%>
- </span>
- <% end %>
+ <%= foi_error_messages_for :info_request, :outgoing_message %>
- <% unless @batch %>
- <div class="form_item_note">
- <% if @info_request.public_body.info_requests.size > 0 %>
- <%= _("Browse <a href='{{url}}'>other requests</a> to '{{public_body_name}}' for examples of how to word your request.", :public_body_name=>h(@info_request.public_body.name), :url=>public_body_path(@info_request.public_body)) %>
- <% else %>
- <%= _("Browse <a href='{{url}}'>other requests</a> for examples of how to word your request.", :url=>request_list_url) %>
- <% end %>
- </div>
-
- <% if @info_request.public_body.has_notes? %>
- <div id="request_header_text">
- <h3><%= _('Special note for this authority!') %></h3>
- <p><%= @info_request.public_body.notes_as_html.html_safe %></p>
- </div>
- <% end %>
-
- <% if @info_request.public_body.override_request_email %>
- <div class="warning">
- <%= _("<strong>Note:</strong> Because we're testing, requests are being sent to {{email}} rather than to the actual authority.", :email => @info_request.public_body.override_request_email) %>
- </div>
- <% end %>
-
- <% if @info_request.public_body.eir_only? %>
- <h3><%= _('Please ask for environmental information only') %></h3>
-
- <p><%= _('The Freedom of Information Act <strong>does not apply</strong> to') %> <%=h(@info_request.public_body.name)%>.
- <%= _('However, you have the right to request environmental
- information under a different law') %> (<a href="/help/requesting#eir">explanation</a>).
- <%= _('This covers a very wide spectrum of information about the state of
- the <strong>natural and built environment</strong>, such as:') %>
-
- <ul>
- <li><%= _('Air, water, soil, land, flora and fauna (including how these effect
- human beings)') %></li>
- <li><%= _('Information on emissions and discharges (e.g. noise, energy,
- radiation, waste materials)') %></li>
- <li><%= _('Human health and safety') %></li>
- <li><%= _('Cultural sites and built structures (as they may be affected by the
- environmental factors listed above)') %></li>
- <li><%= _('Plans and administrative measures that affect these matters') %></li>
- </ul>
-
- <p><%= _('Please only request information that comes under those categories, <strong>do not waste your
- time</strong> or the time of the public authority by requesting unrelated information.') %></p>
- <% end %>
- <% end %>
+ <% if @info_request.public_body.override_request_email %>
+ <div class="warning">
+ <%= _("<strong>Note:</strong> Because we're testing, requests are being sent to {{email}} rather than to the actual authority.", :email => @info_request.public_body.override_request_email) %>
</div>
+ <% end %>
+
+ <% if @batch %>
+ <label class="form_label"><%= _('To:') %></label>
+ <span id="to_public_body">
+ <%= _("Your selected authorities") %>
+ <span class="batch_public_body_toggle" data-hidetext="<%= _("(hide)") %>" data-showtext="<%= _("(show)") %>"><a class="toggle-message"></a></span>
+ </span>
+
+ <div class="batch_public_body_list">
+ <ul>
+ <% @public_bodies.each do |public_body| %>
+ <li><%= public_body.name %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% else %>
+ <p id="to_public_body"><span class="to_public_body_label">To:</span>
+ <%=h(@info_request.public_body.name)%>
+ </p>
+ <% end %>
- <div id="request_header_subject">
- <p>
- <label class="form_label" for="typeahead_search"><%= _('Summary:') %></label>
- <%= f.text_field :title, :size => 50, :id =>"typeahead_search" %>
- </p>
- <div class="form_item_note">
- (<%= _("a one line summary of the information you are requesting, \n\t\t\te.g.") %>
- <%= render :partial => "summary_suggestion" %>)
- </div>
- </div>
+ <% unless @batch %>
+ <% if @info_request.public_body.has_notes? %>
+ <div id="request_header_text">
+ <p><%= @info_request.public_body.notes_as_html.html_safe %></p>
+ </div>
+ <% end %>
+ <% end %>
- <div id="typeahead_response">
- </div>
</div>
+ </div>
+
+ <% unless @batch %>
+ <% if @info_request.public_body.eir_only? %>
+ <div class="request_body">
+ <div id="request_body_header">
+ <h3><%= _('Please ask for environmental information only') %></h3>
+
+ <p><%= _('The Freedom of Information Act <strong>does not apply</strong> to') %> <%=h(@info_request.public_body.name)%>.
+ <%= _('However, you have the right to request environmental
+ information under a different law') %> (<a href="/help/requesting#eir">explanation</a>).
+ <%= _('This covers a very wide spectrum of information about the state of
+ the <strong>natural and built environment</strong>, such as:') %>
+ </p>
+ <ul>
+ <li><%= _('Air, water, soil, land, flora and fauna (including how these effect
+ human beings)') %></li>
+ <li><%= _('Information on emissions and discharges (e.g. noise, energy,
+ radiation, waste materials)') %></li>
+ <li><%= _('Human health and safety') %></li>
+ <li><%= _('Cultural sites and built structures (as they may be affected by the
+ environmental factors listed above)') %></li>
+ <li><%= _('Plans and administrative measures that affect these matters') %></li>
+ </ul>
+
+ <p><%= _('Please only request information that comes under those categories, <strong>do not waste your
+ time</strong> or the time of the public authority by requesting unrelated information.') %></p>
+ </div>
+ </div>
+ <% end %>
+ <% end %>
+ <div class="request_body">
<div id="request_advice">
+ <% unless @batch %>
+ <p>
+ <% if @info_request.public_body.info_requests.size > 0 %>
+ <%= _("Browse <a href='{{url}}'>other requests</a> to '{{public_body_name}}' for examples of how to word your request.", :public_body_name=>h(@info_request.public_body.name), :url=>public_body_path(@info_request.public_body)) %>
+ <% else %>
+ <%= _("Browse <a href='{{url}}'>other requests</a> for examples of how to word your request.", :url=>request_list_url) %>
+ <% end %>
+ </p>
+ <% end %>
+
+ <% if !@user %>
+ <p>
+ <%= raw(_('Everything that you enter on this page, including <strong>your name</strong>,
+ will be <strong>displayed publicly</strong> on
+ this website <a href="{{url}}">forever</a>', :url => (help_privacy_path+"#public_request").html_safe)) %>.
+ </p>
+ <p>
+ <%= raw(_('<a href="{{url}}">Thinking of using a pseudonym?</a>.', :url => (help_privacy_path+"#real_name").html_safe)) %>
+ </p>
+ <% else %>
+ <p>
+ <%= raw(_('Everything that you enter on this page
+ will be <strong>displayed publicly</strong> on
+ this website forever (<a href="{{url}}">why?</a>).', :url => (help_privacy_path+"#public_request").html_safe)) %>
+ </p>
+ <% end %>
+
+ <p>
+ <%= raw(_("<strong> Can I request information about myself?</strong>\n" +
+ "\t\t\t<a href=\"{{url}}\">No!</a>", :url => (help_requesting_path+"#data_protection").html_safe)) %>
+ </p>
+ <div class="advice-panel">
<ul>
- <li><%= _('Write your request in <strong>simple, precise language</strong>.') %></li>
- <li><%= _('Ask for <strong>specific</strong> documents or information, this site is not suitable for general enquiries.') %></li>
- <li><%= _('Keep it <strong>focused</strong>, you\'ll be more likely to get what you want (<a href="{{url}}">why?</a>).', :url => (help_requesting_path + '#focused').html_safe) %></li>
+
+ <li><%= _('Write your request in <strong>simple, precise language</strong>.') %></li>
+ <li><%= _('Ask for <strong>specific</strong> documents or information, this site is not suitable for general enquiries.') %></li>
+ <li><%= _('<a href="{{url}}">Keep it <strong>focused</strong></a>, you\'ll be more likely to get what you want.', :url => (help_requesting_path + '#focused').html_safe) %></li>
</ul>
+ </div>
+
</div>
<div id="request_form">
- <%= fields_for :outgoing_message do |o| %>
- <p>
- <label class="form_label" for="outgoing_message_body"><%= _('Your request:') %></label>
- <%= o.text_area :body, :rows => 20, :cols => 60 %>
- </p>
- <% end %>
-
- <% if !@user %>
- <p class="form_note">
-
- <%= raw(_('Everything that you enter on this page, including <strong>your name</strong>,
- will be <strong>displayed publicly</strong> on
- this website forever (<a href="{{url}}">why?</a>).', :url => (help_privacy_path+"#public_request").html_safe)) %>
- <%= raw(_('If you are thinking of using a pseudonym,
- please <a href="{{url}}">read this first</a>.', :url => (help_privacy_path+"#real_name").html_safe)) %>
- </p>
- <% else %>
- <p class="form_note">
- <%= raw(_('Everything that you enter on this page
- will be <strong>displayed publicly</strong> on
- this website forever (<a href="{{url}}">why?</a>).', :url => (help_privacy_path+"#public_request").html_safe)) %>
- </p>
- <% end %>
- <p class="form_note">
- <%= raw(_("<strong> Can I request information about myself?</strong>\n" +
- "\t\t\t<a href=\"{{url}}\">No! (Click here for details)</a>", :url => (help_requesting_path+"#data_protection").html_safe)) %>
+ <div id="request_header_subject">
+ <p>
+ <label class="form_label" for="typeahead_search"><%= _('Summary:') %></label>
+ <%= f.text_field :title, :size => 50, :id =>"typeahead_search" %>
</p>
-
- <div class="form_button">
- <% if @batch %>
- <% params[:public_body_ids].each do |public_body_id| %>
- <%= hidden_field_tag("public_body_ids[]", public_body_id)%>
- <% end %>
- <% else %>
- <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
- <% end %>
- <%= hidden_field_tag(:submitted_new_request, 1 ) %>
- <%= hidden_field_tag(:preview, 1 ) %>
- <%= submit_tag _("Preview your public request") %>
+ <div class="form_item_note">
+ <%= _("A one line summary of the information you are requesting, \n\t\t\te.g.") %>
+ <%= render :partial => "summary_suggestion" %>
</div>
+ </div>
+
+ <div id="typeahead_response">
+ </div>
+
+ <%= fields_for :outgoing_message do |o| %>
+ <p>
+ <label class="form_label" for="outgoing_message_body"><%= _('Your request:') %></label>
+ <%= o.text_area :body, :rows => 20, :cols => 60 %>
+ </p>
+ <% end %>
+
+ <div class="form_button">
+ <% if @batch %>
+ <% params[:public_body_ids].each do |public_body_id| %>
+ <%= hidden_field_tag("public_body_ids[]", public_body_id)%>
+ <% end %>
+ <% else %>
+ <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
+ <% end %>
+ <%= hidden_field_tag(:submitted_new_request, 1 ) %>
+ <%= hidden_field_tag(:preview, 1 ) %>
+ <%= submit_tag _("Preview your public request") %>
+ </div>
- <% if !@info_request.tag_string.empty? %>
- <p class="form_note">
- <!-- <label class="form_label" for="info_request_tag_string"><%= _("Tags (separated by a space):") %></label>
- <%= f.text_field :tag_string, :size => 50 %> -->
+ <% if !@info_request.tag_string.empty? %>
+ <p class="form_note">
+ <!-- <label class="form_label" for="info_request_tag_string"><%= _("Tags (separated by a space):") %></label>
+ <%= f.text_field :tag_string, :size => 50 %> -->
- <%= f.hidden_field(:tag_string) %>
- <strong>Tags:</strong> <%=h @info_request.tag_string %>
- </p>
- <% end %>
+ <%= f.hidden_field(:tag_string) %>
+ <strong>Tags:</strong> <%=h @info_request.tag_string %>
+ </p>
+ <% end %>
- </div>
+ </div>
+ </div>
<% end %>
+
<% if @batch %>
<%= javascript_include_tag 'new-request.js' %>
<% end %>
diff --git a/app/views/request/preview.html.erb b/app/views/request/preview.html.erb
index ddd5ab30c..3a5b8ae87 100644
--- a/app/views/request/preview.html.erb
+++ b/app/views/request/preview.html.erb
@@ -5,58 +5,68 @@
<% end %>
<%= form_for(@info_request, :url => (@batch ? new_batch_path : new_request_path), :html => { :id => 'preview_form' } ) do |f| %>
- <h1><%= _('3. Now check your request') %></h1>
- <ul>
- <li><%= _('Check you haven\'t included any <strong>personal information</strong>.') %></li>
- <li><%= raw(_('Your name, request and any responses will appear in <strong>search engines</strong>
- (<a href="{{url}}">details</a>).', :url => (help_privacy_path+"#public_request").html_safe)) %>
- </li>
- </ul>
-
- <%= fields_for :outgoing_message do |o| %>
-
- <div class="correspondence" id="outgoing-0">
- <p class="preview_subject">
- <strong><%= _('To:') %></strong>
- <% if @batch %>
- <%= _("Your selected authorities")%>
- <% else %>
- <%=h(@info_request.public_body.name)%>
- <% end %>
- <br><strong><%= _('Subject:') %></strong> <%= @info_request.email_subject_request %>
- </p>
-
- <div class="correspondence_text">
- <p><%= @outgoing_message.get_body_for_html_display %></p>
- <%= o.hidden_field(:body) %>
- </div>
+ <h1><%= _('Preview your request') %></h1>
+ <div class="message-preview">
+ <div class="preview-advice">
+ <div class="advice-panel">
+ <ul>
+ <li><%= _('Check you haven\'t included any <strong>personal information</strong>.') %></li>
+ <li><%= raw(_('Your name, request and any responses will appear in <strong>search engines</strong>
+ (<a href="{{url}}">details</a>).', :url => (help_privacy_path+"#public_request").html_safe)) %>
+ </li>
+ <li><%= _('<a href="{{url}}">Do you want to request private information about yourself?</a>', :url => (help_requesting_path+"#data_protection").html_safe) %></li>
+ </ul>
- <p class="event_actions">
- </p>
+ </div>
</div>
- <% end %>
-
- <p><%= _('<strong>Privacy note:</strong> If you want to request private information about
- yourself then <a href="{{url}}">click here</a>.', :url => (help_requesting_path+"#data_protection").html_safe) %>
-
- <p>
- <%= f.hidden_field(:title) %>
- <% if @batch %>
- <% params[:public_body_ids].each do |public_body_id| %>
- <%= hidden_field_tag("public_body_ids[]", public_body_id)%>
- <% end %>
- <% else %>
- <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
- <% end %>
- <%= f.hidden_field(:tag_string) %>
- <%= hidden_field_tag(:submitted_new_request, 1) %>
- <%= hidden_field_tag(:preview, 0 ) %>
- <%= submit_tag _("Edit this request"), :name => 'reedit', :id => 'reedit_button' %>
- <%= submit_tag _("Send request"), :name => 'submit', :id => 'submit_button' %>
- </p>
-
- <% if !@info_request.tag_string.empty? %>
- <p><strong><%= _('Tags:') %></strong> <%=h @info_request.tag_string %></p>
- <% end %>
+ <div class="preview-pane">
+ <%= fields_for :outgoing_message do |o| %>
+
+ <div class="correspondence" id="outgoing-0">
+ <p class="preview_to">
+ <strong><%= _('To') %></strong>
+ <% if @batch %>
+ <%= _("Your selected authorities")%>
+ <% else %>
+ <%=h(@info_request.public_body.name)%>
+ <% end %>
+ </p>
+ <p class="preview_subject">
+ <strong><%= _('Subject') %></strong> <%= @info_request.email_subject_request %>
+ </p>
+
+ <div class="correspondence_text">
+ <p><%= @outgoing_message.get_body_for_html_display %></p>
+ <%= o.hidden_field(:body) %>
+ </div>
+
+ <p class="event_actions">
+ </p>
+ </div>
+ <% end %>
+
+
+
+ <p>
+ <%= f.hidden_field(:title) %>
+ <% if @batch %>
+ <% params[:public_body_ids].each do |public_body_id| %>
+ <%= hidden_field_tag("public_body_ids[]", public_body_id)%>
+ <% end %>
+ <% else %>
+ <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
+ <% end %>
+ <%= f.hidden_field(:tag_string) %>
+ <%= hidden_field_tag(:submitted_new_request, 1) %>
+ <%= hidden_field_tag(:preview, 0 ) %>
+ <%= submit_tag _("Edit your request"), :name => 'reedit', :id => 'reedit_button' %>
+ <%= submit_tag _("Send request"), :name => 'submit', :id => 'submit_button' %>
+ </p>
+
+ <% if !@info_request.tag_string.empty? %>
+ <p><strong><%= _('Tags:') %></strong> <%=h @info_request.tag_string %></p>
+ <% end %>
+ </div>
+ </div>
<% end %>
diff --git a/app/views/request/select_authorities.html.erb b/app/views/request/select_authorities.html.erb
index e16bcc191..cfbc21a28 100644
--- a/app/views/request/select_authorities.html.erb
+++ b/app/views/request/select_authorities.html.erb
@@ -1,5 +1,5 @@
-<% @title = _("Select the authorities to write to") %>
-<h1><%= _('1. Select authorities') %></h1>
+<% @title = _("Find the authorities to write to") %>
+<h1><%= _('Find the authorities') %></h1>
<p>
<%= _("Search for the authorities you'd like information from:") %>
diff --git a/app/views/request/select_authority.html.erb b/app/views/request/select_authority.html.erb
index 9a5d565b6..5678e5aaa 100644
--- a/app/views/request/select_authority.html.erb
+++ b/app/views/request/select_authority.html.erb
@@ -10,16 +10,15 @@
});
</script>
-<% @title = _("Select the authority to write to") %>
+<% @title = _("Find an authority") %>
-<h1 style="clear: left"><%= _('1. Select an authority') %></h1>
+<h1><%= _('Find an authority') %></h1>
<div id="authority_selection">
<%= form_tag select_authority_path, { :id => 'search_form', :method => 'get' } do %>
<div>
<p>
- <%= _(%Q(First, type in the <strong>name of the public authority</strong> you'd
- like information from.)) %>
+ <%= _('Start by typing the name of the UK public authority your request is for') %>
<% if AlaveteliConfiguration.authority_must_respond %>
<%= _(%Q(<strong>By law, they have to respond</strong> (<a href="{{url}}">why?</a>).),
:url => (help_about_path(:anchor => 'whybother_them')).html_safe) %>