From 172a5c99f3ccaa97c28b059477e59b1c574779f8 Mon Sep 17 00:00:00 2001 From: Romano Licker Date: Mon, 7 Nov 2011 13:42:12 +0100 Subject: [PATCH] [#667] added labels for filters --- app/views/queries/_filters.rhtml | 9 ++++++--- config/locales/de.yml | 2 ++ config/locales/en.yml | 2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/views/queries/_filters.rhtml b/app/views/queries/_filters.rhtml index 5cf9825d5a..22e17f56e7 100644 --- a/app/views/queries/_filters.rhtml +++ b/app/views/queries/_filters.rhtml @@ -97,11 +97,14 @@ Event.observe(document,"dom:loaded", apply_filters_observer); <%= link_to_function image_tag('bullet_toggle_plus.png'), "toggle_multi_select('#{field}');", :style => "vertical-align: bottom;" %> <% when :date, :date_past %> - <%= text_field_tag "v[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 3, :class => "select-small" %> <%= l(:label_day_plural) %> + <%= text_field_tag "v[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 3, :class => "select-small" %> + <% when :string, :text %> - <%= text_field_tag "v[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 30, :class => "select-small" %> + <%= text_field_tag "v[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 30, :class => "select-small" %> + <% when :integer %> - <%= text_field_tag "v[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 3, :class => "select-small" %> + <%= text_field_tag "v[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 3, :class => "select-small" %> + <% end %> diff --git a/config/locales/de.yml b/config/locales/de.yml index 56b4db410b..7a7a64d7bf 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1000,3 +1000,5 @@ de: description_date_from: Startdatum eintragen description_date_to: Enddatum eintragen description_select_issue: Ticket auswählen + description_enter_number: Zahl eingeben + description_enter_text: Text eingeben diff --git a/config/locales/en.yml b/config/locales/en.yml index 809a237b7c..b99f86432b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -982,3 +982,5 @@ en: description_date_from: Enter start date description_date_to: Enter end date description_select_issue: Select issue + description_enter_number: Enter number + description_enter_text: Enter text