summaryrefslogtreecommitdiffstats
path: root/app/views/queries/_columns.html.erb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-29 01:14:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-29 01:14:10 +0000
commitfc54fac55621a39e9ca447dc733f6a179fe1ceb8 (patch)
treecd25ae0a3765e0c8dede729b5b5da1611a36f707 /app/views/queries/_columns.html.erb
parentf8fa9b767d918876ff3854ed72969085471c97b4 (diff)
downloadredmine-fc54fac55621a39e9ca447dc733f6a179fe1ceb8.tar.gz
redmine-fc54fac55621a39e9ca447dc733f6a179fe1ceb8.zip
[#9489] added invisible labels for queries
Contributed by Romano Licker. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7678 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/queries/_columns.html.erb')
-rw-r--r--app/views/queries/_columns.html.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/queries/_columns.html.erb b/app/views/queries/_columns.html.erb
index 1c3c771ed..3e08726b0 100644
--- a/app/views/queries/_columns.html.erb
+++ b/app/views/queries/_columns.html.erb
@@ -1,6 +1,8 @@
<table style="border-collapse: collapse; border:0;">
<tr>
- <td style="padding-left:0"><%= select_tag 'available_columns',
+ <td style="padding-left:0">
+ <%= label_tag "available_columns", l(:description_available_columns), :class => "hidden-for-sighted" %>
+ <%= 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" %>
</td>
@@ -10,7 +12,9 @@
<input type="button" value="&#8592;"
onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" />
</td>
- <td><%= select_tag 'c[]',
+ <td>
+ <%= label_tag "selected_columns", l(:description_selected_columns), :class => "hidden-for-sighted" %>
+ <%= select_tag 'c[]',
options_for_select(query.columns.collect {|column| [column.caption, column.name]}),
:id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px" %>
</td>