diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-10-29 17:09:55 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-10-30 15:45:48 +0000 |
commit | 96e97ac43c167670a37a9a14e4410b8caac76c6a (patch) | |
tree | 14d897e4a442e76814056ce003499e769b39538a | |
parent | 58e29381a2010eb20e7a530ca0cdff59aed24d6d (diff) |
Improve /select_authority search box
- Make it wider
- Add a placeholder
- Translate placeholder and title text
-rw-r--r-- | app/assets/stylesheets/responsive/_new_request_layout.scss | 3 | ||||
-rw-r--r-- | app/views/request/select_authority.html.erb | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/stylesheets/responsive/_new_request_layout.scss b/app/assets/stylesheets/responsive/_new_request_layout.scss index 5e8a4fa22..9d7c0b047 100644 --- a/app/assets/stylesheets/responsive/_new_request_layout.scss +++ b/app/assets/stylesheets/responsive/_new_request_layout.scss @@ -11,6 +11,9 @@ @include lte-ie7 { width: 27.125em; } + #query { + width: 80%; + } } } diff --git a/app/views/request/select_authority.html.erb b/app/views/request/select_authority.html.erb index 6c17a0d15..409228297 100644 --- a/app/views/request/select_authority.html.erb +++ b/app/views/request/select_authority.html.erb @@ -23,7 +23,11 @@ (<a href="{{url}}">why?</a>).), :url => (help_about_path(:anchor => 'whybother_them')).html_safe) %> </p> - <%= text_field_tag :query, params[:query], { :size => 30, :title => "type your search term here" } %> + <%= text_field_tag :query, + params[:query], + { :size => 30, + :title => _('type your search term here'), + :placeholder => _('e.g. Ministry of Defence') } %> <%= hidden_field_tag :bodies, 1 %> <%= submit_tag _('Search') %> </div> |