[noosfero/noosfero][next] profile-search: add placeholder to search field

Rodrigo Souto gitlab at gitlab.com
Fri Apr 24 16:40:23 BRT 2015


Rodrigo Souto pushed to branch next at Noosfero / noosfero


Commits:
d818aa8e by Rodrigo Souto at 2015-04-24T16:40:28Z
profile-search: add placeholder to search field

- - - - -


1 changed file:

- app/views/shared/_profile_search_form.html.erb


Changes:

=====================================
app/views/shared/_profile_search_form.html.erb
=====================================
--- a/app/views/shared/_profile_search_form.html.erb
+++ b/app/views/shared/_profile_search_form.html.erb
@@ -1,7 +1,8 @@
+<% search_label = _("Find in %s's content") % profile.short_name %>
 <%= form_tag( { :controller => 'profile_search', :profile => profile.identifier}, :method => 'get', :class => 'search_form' ) do %>
   <div class="search-field">
     <span class="formfield">
-      <%= search_input_with_suggestions 'q', :articles, @q, :title => _("Find in %s's content") % profile.short_name %>
+      <%= search_input_with_suggestions 'q', :articles, @q, :title => search_label, :placeholder => search_label %>
     </span>
     <%= submit_button(:search, _('Search')) %>
     <div>



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/d818aa8e5a28bb6cea9c49fb086636b4dc92c9ef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150424/0f258b04/attachment-0001.html>


More information about the Noosfero-dev mailing list