diff options
author | Martin Wright <martin@mysociety.org> | 2014-07-01 16:39:47 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-03-02 16:11:13 +0000 |
commit | ae7e294bc3dfd6737aec930e24110ef269f77c71 (patch) | |
tree | 2349c5571eafd3f80e53ca5a7e2c00e87f1c43de | |
parent | a5a0e3f6c407c28d17fe73d5bec6ede5aceeaa1d (diff) |
Improved layout, moved help text to the right, so the form has less clutter. TODO: Visual styling
-rw-r--r-- | app/assets/stylesheets/responsive/_new_request_layout.scss | 4 | ||||
-rw-r--r-- | app/views/request/new.html.erb | 90 |
2 files changed, 50 insertions, 44 deletions
diff --git a/app/assets/stylesheets/responsive/_new_request_layout.scss b/app/assets/stylesheets/responsive/_new_request_layout.scss index 49e247b2a..2e0c4b029 100644 --- a/app/assets/stylesheets/responsive/_new_request_layout.scss +++ b/app/assets/stylesheets/responsive/_new_request_layout.scss @@ -99,6 +99,10 @@ float: right; } +.request_body { + @include grid-row($behavior: nest); +} + /* Advice sits on right hand side */ #request_advice { diff --git a/app/views/request/new.html.erb b/app/views/request/new.html.erb index 688d9e87b..e05969888 100644 --- a/app/views/request/new.html.erb +++ b/app/views/request/new.html.erb @@ -36,7 +36,7 @@ <% 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> + <h1><%= _('Make a request') %></h1> <% if @existing_request %> <div class="errorExplanation" id="errorExplanation"><ul> @@ -61,9 +61,8 @@ <div id="request_header"> <div id="request_header_body"> - <label class="form_label"><%= _('To:') %></label> - <% 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> @@ -78,23 +77,14 @@ </div> <% else %> - <span id="to_public_body"> + <p id="to_public_body"><span class="to_public_body_label">To:</span> <%=h(@info_request.public_body.name)%> - </span> + </p> <% end %> <% 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 %> @@ -130,6 +120,48 @@ <% end %> <% end %> </div> + </div> + + + <div id="request_advice"> + <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> + <% unless @batch %> + <% 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! (Click here for details)</a>", :url => (help_requesting_path+"#data_protection").html_safe)) %> + </p> + <ul> + <% end %> + <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> + </ul> + </div> + + <div id="request_form"> <div id="request_header_subject"> <p> @@ -144,17 +176,7 @@ <div id="typeahead_response"> </div> - </div> - <div id="request_advice"> - <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> - </ul> - </div> - - <div id="request_form"> <%= fields_for :outgoing_message do |o| %> <p> <label class="form_label" for="outgoing_message_body"><%= _('Your request:') %></label> @@ -162,27 +184,7 @@ </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)) %> - </p> <div class="form_button"> <% if @batch %> |