[#667] added labels for filters

pull/41/head
Romano Licker 13 years ago
parent a2df24cd50
commit 172a5c99f3
  1. 9
      app/views/queries/_filters.rhtml
  2. 2
      config/locales/de.yml
  3. 2
      config/locales/en.yml

@ -97,11 +97,14 @@ Event.observe(document,"dom:loaded", apply_filters_observer);
</select>
<%= 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" %>
<label for='<%= "values_#{field}" %>'><%= l(:label_day_plural) %></label>
<% 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" %>
<label for='<%= "values_#{field}" %>' class='hidden-for-sighted' ><%= l(:description_enter_text) %></label>
<% 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" %>
<label for='<%= "values_#{field}" %>' class='hidden-for-sighted' ><%= l(:description_enter_number) %></label>
<% end %>
</div>
<script type="text/javascript">toggle_filter('<%= field %>');</script>

@ -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

@ -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

Loading…
Cancel
Save