[#9489] made labels visible as this is an accessibility issue even for sighted users

Contributed by Romano Licker.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7695 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-10-29 01:23:47 +00:00
parent c6870edd55
commit 62f87e3091
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,8 @@
<table style="border-collapse: collapse; border:0;"> <table style="border-collapse: collapse; border:0;">
<tr> <tr>
<td style="padding-left:0"> <td style="padding-left:0">
<%= label_tag "available_columns", l(:description_available_columns), :class => "hidden-for-sighted" %> <%= label_tag "available_columns", l(:description_available_columns) %>
<br \>
<%= select_tag 'available_columns', <%= select_tag 'available_columns',
options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}), options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}),
:multiple => true, :size => 10, :style => "width:150px" %> :multiple => true, :size => 10, :style => "width:150px" %>
@ -13,7 +14,8 @@
onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" /> onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" />
</td> </td>
<td> <td>
<%= label_tag "selected_columns", l(:description_selected_columns), :class => "hidden-for-sighted" %> <%= label_tag "selected_columns", l(:description_selected_columns) %>
<br \>
<%= select_tag 'c[]', <%= select_tag 'c[]',
options_for_select(query.columns.collect {|column| [column.caption, column.name]}), options_for_select(query.columns.collect {|column| [column.caption, column.name]}),
:id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px" %> :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px" %>