Replace custom search placeholder with ui.search_placeholder

This commit is contained in:
Patrick Gansterer 2019-10-30 12:00:46 +01:00
parent 1550eedb5a
commit 30c53746fc
7 changed files with 5 additions and 18 deletions

View file

@ -1,7 +1,7 @@
.well.well-small
= search_form_for @q, url: url,
html: {data: {'submit-onchange' => true}, method: :get, remote: true, class: 'form-search'} do |f|
= f.text_field :note_cont, class: 'search-query', placeholder: t('.search_placeholder')
= f.text_field :note_cont, class: 'search-query', placeholder: t('ui.search_placeholder')
 
= label_tag 'q_created_on_gteq', FinancialTransaction.human_attribute_name(:created_on)
@ -19,4 +19,3 @@
= f.text_field :amount_gteq, class: 'input-mini'
%span.add-on -
= f.text_field :amount_lteq, class: 'input-mini search-query'

View file

@ -8,7 +8,7 @@
= form_tag finance_ordergroups_path, :method => :get, :remote => true,
'data-submit-onchange' => true, class: 'form-search' do
= text_field_tag :query, params[:query], class: 'input-medium search-query',
placeholder: t('.search_placeholder')
placeholder: t('ui.search_placeholder')
#ordergroupsTable
= render :partial => "ordergroups"