Commit d818aa8e5a28bb6cea9c49fb086636b4dc92c9ef

Authored by Rodrigo Souto
1 parent b3756e14

profile-search: add placeholder to search field

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