alt tags for images

pull/6827/head
Jens Ulferts 13 years ago
parent 0dccee383e
commit 3edaf4a9f6
  1. 4
      lib/widget/filters/date.rb
  2. 4
      lib/widget/filters/multi_values.rb

@ -1,7 +1,9 @@
class Widget::Filters::Date < Widget::Filters::Base
def calendar_for(field_id)
image_tag("calendar.png", {:id => "#{field_id}_trigger",:class => "calendar-trigger"}) +
image_tag("calendar.png", { :id => "#{field_id}_trigger",
:class => "calendar-trigger",
:alt => l(:label_calendar) }) +
javascript_tag("Calendar.setup({inputField : '#{field_id}', ifFormat : '%Y-%m-%d', button : '#{field_id}_trigger' });")
end

@ -33,7 +33,9 @@ class Widget::Filters::MultiValues < Widget::Filters::Base
end
plus = content_tag :a, :href => 'javascript:', :class => "filter_multi-select", :"data-filter-name" => filter_class.underscore_name,
:title => l(:description_multi_select) do
image_tag 'bullet_toggle_plus.png', :style => "vertical-align: bottom;"
image_tag 'bullet_toggle_plus.png',
:alt => l(:toggle_multiselect),
:style => "vertical-align: bottom;"
end
label + box + plus
end

Loading…
Cancel
Save