[accessibility] more labels and alt tags

pull/6827/head
Romano Licker 13 years ago
parent 0e9b82a807
commit 4884090106
  1. 6
      app/views/costlog/edit.rhtml
  2. 10
      app/views/groups/_users_unused.rhtml
  3. 1
      config/locales/de.yml
  4. 1
      config/locales/en.yml

@ -34,7 +34,7 @@
</span> </span>
<br /><em><%= l(:help_override_rate) %></em> <br /><em><%= l(:help_override_rate) %></em>
<% end %> <% end %>
</p> </p>
<p><%= f.text_field :comments, :size => 100 %></p> <p><%= f.text_field :comments, :size => 100 %></p>
</div> </div>
@ -44,7 +44,7 @@
<% content_for :header_tags do %> <% content_for :header_tags do %>
<%= javascript_include_tag 'editinplace', :plugin => 'redmine_costs' %> <%= javascript_include_tag 'editinplace', :plugin => 'redmine_costs' %>
<%= javascript_tag "initialize_editinplace('src=\"#{image_path('cancel.png')}\" value=\"#{l(:label_cancel)}\"' )" %> <%= javascript_tag "initialize_editinplace('src=\"#{image_path('cancel.png')}\" value=\"#{l(:label_cancel)}\" alt=\"#{l(:button_cancel_edit_costs)}\" title=\"#{l(:button_cancel_edit_costs)}\"' )" %>
<%= stylesheet_link_tag 'costs', :plugin => 'redmine_costs' %> <%= stylesheet_link_tag 'costs', :plugin => 'redmine_costs' %>
<% end %> <% end %>

@ -14,7 +14,7 @@
<td align="center" style="white-space: nowrap;"> <td align="center" style="white-space: nowrap;">
<% remote_form_for :group_user, group_user, :url => { :controller => 'groups', :action => 'set_membership_type', :id => @group, :user_id => user}, :method => :post do |f| %> <% remote_form_for :group_user, group_user, :url => { :controller => 'groups', :action => 'set_membership_type', :id => @group, :user_id => user}, :method => :post do |f| %>
<%= f.select :membership_type, GroupUser::MEMBERSHIP_TYPES.collect{|t| [l(t), t]} %> <%= f.select :membership_type, GroupUser::MEMBERSHIP_TYPES.collect{|t| [l(t), t]} %>
<%= image_submit_tag "save.png" %> <%= image_submit_tag "save.png", :alt => l(:button_save) %>
<% end %> <% end %>
</td> </td>
<td class="buttons"> <td class="buttons">
@ -36,24 +36,24 @@
<% if users.any? %> <% if users.any? %>
<% remote_form_for(:group, @group, :url => {:controller => 'groups', :action => 'add_users', :id => @group}, :method => :post) do |f| %> <% remote_form_for(:group, @group, :url => {:controller => 'groups', :action => 'add_users', :id => @group}, :method => :post) do |f| %>
<fieldset><legend><%=l(:label_user_new)%></legend> <fieldset><legend><%=l(:label_user_new)%></legend>
<p><%= text_field_tag 'user_search', nil, :size => "40" %></p> <p><%= text_field_tag 'user_search', nil, :size => "40" %></p>
<p> <p>
<%= label_tag :membership_type, l(:label_membership_type) %> <%= label_tag :membership_type, l(:label_membership_type) %>
<%= select_tag :membership_type, options_for_select(GroupUser::MEMBERSHIP_TYPES.collect{|t| [l(t), t]}, GroupUser::DEFAULT_MEMBERSHIP_TYPE) %> <%= select_tag :membership_type, options_for_select(GroupUser::MEMBERSHIP_TYPES.collect{|t| [l(t), t]}, GroupUser::DEFAULT_MEMBERSHIP_TYPE) %>
</p> </p>
<%= observe_field(:user_search, <%= observe_field(:user_search,
:frequency => 0.5, :frequency => 0.5,
:update => :users, :update => :users,
:url => { :controller => 'groups', :action => 'autocomplete_for_user', :id => @group }, :url => { :controller => 'groups', :action => 'autocomplete_for_user', :id => @group },
:with => 'q') :with => 'q')
%> %>
<div id="users"> <div id="users">
<%= principals_check_box_tags 'user_ids[]', users %> <%= principals_check_box_tags 'user_ids[]', users %>
</div> </div>
<p><%= submit_tag l(:button_add) %></p> <p><%= submit_tag l(:button_add) %></p>
</fieldset> </fieldset>
<% end %> <% end %>

@ -165,4 +165,5 @@ de:
caption_locked_on: "Gesperrt am" caption_locked_on: "Gesperrt am"
caption_show_locked: "Gesperrte Typen anzeigen" caption_show_locked: "Gesperrte Typen anzeigen"
button_cancel_edit_budget: "Budget bearbeiten abbrechen" button_cancel_edit_budget: "Budget bearbeiten abbrechen"
button_cancel_edit_costs: "Kosten bearbeiten abbrechen"
description_date_for_new_rate: "Datum für neuen Satz" description_date_for_new_rate: "Datum für neuen Satz"

@ -163,4 +163,5 @@ en:
caption_locked_on: "Locked on" caption_locked_on: "Locked on"
caption_show_locked: "Show locked types" caption_show_locked: "Show locked types"
button_cancel_edit_budget: "Cancel editing budget" button_cancel_edit_budget: "Cancel editing budget"
button_cancel_edit_costs: "Cancel editing costs"
description_date_for_new_rate: "Date for new rate" description_date_for_new_rate: "Date for new rate"

Loading…
Cancel
Save