aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/assets/images/next-step-facebook.pngbin0 -> 626 bytes
-rw-r--r--app/assets/images/next-step-twitter.pngbin0 -> 959 bytes
-rw-r--r--app/assets/stylesheets/responsive/_new_request_layout.scss35
-rw-r--r--app/assets/stylesheets/responsive/_new_request_style.scss29
-rw-r--r--app/views/request/_request_sent.html.erb79
5 files changed, 127 insertions, 16 deletions
diff --git a/app/assets/images/next-step-facebook.png b/app/assets/images/next-step-facebook.png
new file mode 100644
index 000000000..c01fa6ced
--- /dev/null
+++ b/app/assets/images/next-step-facebook.png
Binary files differ
diff --git a/app/assets/images/next-step-twitter.png b/app/assets/images/next-step-twitter.png
new file mode 100644
index 000000000..e79255bd6
--- /dev/null
+++ b/app/assets/images/next-step-twitter.png
Binary files differ
diff --git a/app/assets/stylesheets/responsive/_new_request_layout.scss b/app/assets/stylesheets/responsive/_new_request_layout.scss
index a8b24e1b1..55c72b8e3 100644
--- a/app/assets/stylesheets/responsive/_new_request_layout.scss
+++ b/app/assets/stylesheets/responsive/_new_request_layout.scss
@@ -165,5 +165,40 @@ div.batch_public_body_toggle {
}
+/* Request sent page */
+.request-sent-message {
+ margin-top: 1em;
+ h1 {
+ margin-bottom: 1em;
+ }
+}
+.request-sent-message__row {
+ @include grid-row($behavior: nest);
+}
+.request-sent-message__column-1 {
+ @include grid-column(12);
+ @include respond-min( $main_menu-mobile_menu_cutoff ){
+ @include grid-column($columns:8);
+ @include ie8{
+ padding-right: 0.9375em;
+ }
+ @include lte-ie7 {
+ width: 36.813em;
+ }
+ }
+}
+
+.request-sent-message__column-2 {
+ @include grid-column(12);
+ @include respond-min( $main_menu-mobile_menu_cutoff ){
+ @include grid-column($columns:4);
+ @include ie8{
+ padding-left: 0.9375em;
+ }
+ @include lte-ie7 {
+ width: 17.438em;
+ }
+ }
+}
diff --git a/app/assets/stylesheets/responsive/_new_request_style.scss b/app/assets/stylesheets/responsive/_new_request_style.scss
index 86e17cbfe..e07ecb55c 100644
--- a/app/assets/stylesheets/responsive/_new_request_style.scss
+++ b/app/assets/stylesheets/responsive/_new_request_style.scss
@@ -61,3 +61,32 @@
color: #0000EE;
font-size: 0.9em;
}
+
+/* Request sent page */
+.request-sent-message {
+ border-bottom: 1px solid #e9e9e9;
+ font-size: 1em;
+ h1 {
+ }
+}
+
+.request-sent-message__column-1 {
+ h2 {
+ font-size: 1em;
+ }
+}
+
+.what-next {
+ background-color: #e6e8d6;
+ background-color: rgba(255,255,255, 0.4);
+ padding: 0.5em 1.5em 1.5em;
+ margin-bottom: 1.5em;
+}
+
+.what-next__list {
+ list-style: none outside none;
+ padding-left: 0;
+ li {
+ margin-bottom: 0.5em;
+ }
+}
diff --git a/app/views/request/_request_sent.html.erb b/app/views/request/_request_sent.html.erb
index 5ce6f5317..70fa18712 100644
--- a/app/views/request/_request_sent.html.erb
+++ b/app/views/request/_request_sent.html.erb
@@ -1,19 +1,66 @@
-<div id="notice">
- <p>
- <%= _("Your {{law_used_full}} request has been <strong>sent on its way</strong>!",
- :law_used_full => @info_request.law_used_full) %>
- </p>
+<div id="content">
+ <div class="request-sent-message" id="notice">
+ <h1>
+ <%= _("Your {{law_used_full}} request has been sent",
+ :law_used_full => @info_request.law_used_full) %>
+ </h1>
+ <div class="request-sent-message__row">
+ <div class="request-sent-message__column-1">
+ <p class="subtitle">
+ <%= _("<strong>We will email you</strong> when there is a response, or after " \
+ "{{late_number_of_days}} working days if the authority still hasn't " \
+ "replied by then.",
+ :late_number_of_days => AlaveteliConfiguration.reply_late_after_days) %>
+ </p>
- <p>
- <%= _("<strong>We will email you</strong> when there is a response, or after " \
- "{{late_number_of_days}} working days if the authority still hasn't " \
- "replied by then.",
- :late_number_of_days => AlaveteliConfiguration.reply_late_after_days) %>
- </p>
+ <h2><%= _("Share your request") %></h2>
- <p>
- <%= _("If you write about this request (for example in a forum or a blog) " \
- "please link to this page, and add an annotation below telling people " \
- "about your writing.") %>
- </p>
+ <%= link_to image_tag("next-step-twitter.png",
+ :alt => _("Tweet it"),
+ :width => "120",
+ :height => "37"),
+ "https://twitter.com/intent/tweet?" << {
+ :url => request.url,
+ :via => AlaveteliConfiguration.twitter_username,
+ :text => "'#{ @info_request.title }'",
+ :related => _('alaveteli_foi:The software that runs {{site_name}}', :site_name => site_name)
+ }.to_query %>
+
+ <%= link_to image_tag("next-step-facebook.png",
+ :alt => _("Share on Facebook"),
+ :width => "120",
+ :height => "37"),
+ "https://www.facebook.com/sharer/sharer.php?" << {
+ :u => request.url
+ }.to_query %>
+
+ <h2><%= _("Keep your request up to date") %></h2>
+ <p>
+ <%= _('If you write about this request ' \
+ '(for example in a forum or a blog) ' \
+ 'please link to this page, and <a href="{{url}}">add an ' \
+ 'annotation</a> below telling people ' \
+ 'about your writing.', :url => new_comment_url(:url_title => @info_request.url_title).html_safe) %>
+ </p>
+ </div>
+ <div class="request-sent-message__column-2">
+ <div class="what-next">
+ <h2><%= _("What next?") %></h2>
+ <ul class="what-next__list">
+ <li>
+ <a href="#"><%= _("Change how you'd like to be notified of changes " \
+ "to your request") %></a>
+ </li>
+ <li>
+ <%= link_to _("View other requests to {{public_body}}", :public_body => @info_request.public_body.name), public_body_path(@info_request.public_body) %>
+ </li>
+ <li>
+ <%= link_to _("Help us classify requests that haven't " \
+ "been updated"), categorise_play_path %>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
</div>