[#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
This commit is contained in:
parent
f8fa9b767d
commit
fc54fac556
|
@ -1,6 +1,8 @@
|
||||||
<table style="border-collapse: collapse; border:0;">
|
<table style="border-collapse: collapse; border:0;">
|
||||||
<tr>
|
<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]}),
|
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" %>
|
||||||
</td>
|
</td>
|
||||||
|
@ -10,7 +12,9 @@
|
||||||
<input type="button" value="←"
|
<input type="button" value="←"
|
||||||
onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" />
|
onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" />
|
||||||
</td>
|
</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]}),
|
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" %>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -114,7 +114,10 @@ Event.observe(document,"dom:loaded", apply_filters_observer);
|
||||||
<label for="cb_<%= field %>"><%= filter[1][:name] || l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) %></label>
|
<label for="cb_<%= field %>"><%= filter[1][:name] || l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) %></label>
|
||||||
</td>
|
</td>
|
||||||
<td class="operator">
|
<td class="operator">
|
||||||
<%= select_tag "op[#{field}]", options_for_select(operators_for_select(options[:type]), query.operator_for(field)), :id => "operators_#{field}", :onchange => "toggle_operator('#{field}');" %>
|
<%= label_tag "op_#{field}", l(:description_filter), :class => "hidden-for-sighted" %>
|
||||||
|
<%= select_tag "op[#{field}]", options_for_select(operators_for_select(options[:type]),
|
||||||
|
query.operator_for(field)), :id => "operators_#{field}",
|
||||||
|
:onchange => "toggle_operator('#{field}');" %>
|
||||||
</td>
|
</td>
|
||||||
<td class="values">
|
<td class="values">
|
||||||
<div id="div_values_<%= field %>" style="display:none;">
|
<div id="div_values_<%= field %>" style="display:none;">
|
||||||
|
|
|
@ -29,10 +29,18 @@
|
||||||
|
|
||||||
<fieldset><legend><%= l(:label_sort) %></legend>
|
<fieldset><legend><%= l(:label_sort) %></legend>
|
||||||
<% 3.times do |i| %>
|
<% 3.times do |i| %>
|
||||||
<%= i+1 %>: <%= select_tag("query[sort_criteria][#{i}][]",
|
<%= i+1 %>:
|
||||||
options_for_select([[]] + query.available_columns.select(&:sortable?).collect {|column| [column.caption, column.name.to_s]}, @query.sort_criteria_key(i))) %>
|
<%= label_tag "query_sort_criteria_attribute_" + i.to_s,
|
||||||
|
l(:description_query_sort_criteria_attribute), :class => "hidden-for-sighted" %>
|
||||||
<%= select_tag("query[sort_criteria][#{i}][]",
|
<%= select_tag("query[sort_criteria][#{i}][]",
|
||||||
options_for_select([[], [l(:label_ascending), 'asc'], [l(:label_descending), 'desc']], @query.sort_criteria_order(i))) %><br />
|
options_for_select([[]] + query.available_columns.select(&:sortable?).collect {|column| [column.caption, column.name.to_s]}, @query.sort_criteria_key(i)),
|
||||||
|
:id => "query_sort_criteria_attribute_" + i.to_s)%>
|
||||||
|
<%= label_tag "query_sort_criteria_direction_" + i.to_s,
|
||||||
|
l(:description_query_sort_criteria_direction), :class => "hidden-for-sighted" %>
|
||||||
|
<%= select_tag("query[sort_criteria][#{i}][]",
|
||||||
|
options_for_select([[], [l(:label_ascending), 'asc'], [l(:label_descending), 'desc']], @query.sort_criteria_order(i)),
|
||||||
|
:id => "query_sort_criteria_direction_" + i.to_s) %>
|
||||||
|
<br />
|
||||||
<% end %>
|
<% end %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|
|
@ -1000,6 +1000,11 @@ de:
|
||||||
label_diff: diff
|
label_diff: diff
|
||||||
text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
|
text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
|
||||||
|
|
||||||
|
description_filter: Filter
|
||||||
description_search: Suchfeld
|
description_search: Suchfeld
|
||||||
description_project_scope: Suchbereich
|
description_project_scope: Suchbereich
|
||||||
|
description_query_sort_criteria_attribute: Sortierattribut
|
||||||
|
description_query_sort_criteria_direction: Sortierrichtung
|
||||||
|
description_available_columns: Verfügbare Spalten
|
||||||
|
description_selected_columns: Ausgewählte Spalten
|
||||||
|
|
||||||
|
|
|
@ -978,5 +978,10 @@ en:
|
||||||
enumeration_doc_categories: Document categories
|
enumeration_doc_categories: Document categories
|
||||||
enumeration_activities: Activities (time tracking)
|
enumeration_activities: Activities (time tracking)
|
||||||
enumeration_system_activity: System Activity
|
enumeration_system_activity: System Activity
|
||||||
|
description_filter: Filter
|
||||||
description_search: Searchfield
|
description_search: Searchfield
|
||||||
description_project_scope: Search scope
|
description_project_scope: Search scope
|
||||||
|
description_query_sort_criteria_attribute: Sort attribute
|
||||||
|
description_query_sort_criteria_direction: Sort direction
|
||||||
|
description_available_columns: Available Columns
|
||||||
|
description_selected_columns: Selected Spalten
|
||||||
|
|
Loading…
Reference in New Issue