Skip to content

Commit

Permalink
[chiliproject#667] made labels visible as this is an accessibility issue
Browse files Browse the repository at this point in the history
even for sighted users
  • Loading branch information
Romano Licker authored and meineerde committed Oct 28, 2011
1 parent fdf660e commit 3bd6aa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/queries/_columns.rhtml
@@ -1,7 +1,8 @@
<table style="border-collapse: collapse; border:0;">
<tr>
<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',
options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}),
:multiple => true, :size => 10, :style => "width:150px" %>
Expand All @@ -13,7 +14,8 @@
onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" />
</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[]',
options_for_select(query.columns.collect {|column| [column.caption, column.name]}),
:id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px" %>
Expand Down

0 comments on commit 3bd6aa3

Please sign in to comment.