From 52f2879559a1db2307d68ca2d09a6d9318c1c36c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 29 Oct 2011 01:18:10 +0000 Subject: [PATCH] [#9489] added invisible labels for reassign select-tag on destroy views Contributed by Romano Licker. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7684 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/enumerations/destroy.html.erb | 2 +- app/views/issue_categories/destroy.html.erb | 1 + app/views/wiki/destroy.html.erb | 1 + config/locales/de.yml | 2 ++ config/locales/en.yml | 2 ++ 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/enumerations/destroy.html.erb b/app/views/enumerations/destroy.html.erb index 657df8322..b77fff66e 100644 --- a/app/views/enumerations/destroy.html.erb +++ b/app/views/enumerations/destroy.html.erb @@ -3,7 +3,7 @@ <% form_tag({}) do %>

<%= l(:text_enumeration_destroy_question, @enumeration.objects_count) %>

-

<%= l(:text_enumeration_category_reassign_to) %> +

<%= select_tag 'reassign_to_id', ("" + options_from_collection_for_select(@enumerations, 'id', 'name')) %>

diff --git a/app/views/issue_categories/destroy.html.erb b/app/views/issue_categories/destroy.html.erb index 2b61810e7..436aed343 100644 --- a/app/views/issue_categories/destroy.html.erb +++ b/app/views/issue_categories/destroy.html.erb @@ -6,6 +6,7 @@


<% if @categories.size > 0 %> : +<%= label_tag "reassign_to_id", l(:description_ticket_reassign), :class => "hidden-for-sighted" %> <%= select_tag 'reassign_to_id', options_from_collection_for_select(@categories, 'id', 'name') %>

<% end %> diff --git a/app/views/wiki/destroy.html.erb b/app/views/wiki/destroy.html.erb index 1c07d7625..e07e2f8d4 100644 --- a/app/views/wiki/destroy.html.erb +++ b/app/views/wiki/destroy.html.erb @@ -10,6 +10,7 @@ <% if @reassignable_to.any? %>
: +<%= label_tag "reassign_to_id", l(:description_wiki_reassign), :class => "hidden-for-sighted" %> <%= select_tag 'reassign_to_id', wiki_page_options_for_select(@reassignable_to), :onclick => "$('todo_reassign').checked = true;" %> <% end %> diff --git a/config/locales/de.yml b/config/locales/de.yml index 777c45b47..23f06bbab 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1008,4 +1008,6 @@ de: description_query_sort_criteria_direction: Sortierrichtung description_available_columns: Verfügbare Spalten description_selected_columns: Ausgewählte Spalten + description_ticket_reassign: Ticketzuordnung + description_wiki_reassign: Wikiseitenzuordnung diff --git a/config/locales/en.yml b/config/locales/en.yml index dcdca5fe4..93c987ced 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -986,3 +986,5 @@ en: description_query_sort_criteria_direction: Sort direction description_available_columns: Available Columns description_selected_columns: Selected Spalten + description_ticket_reassign: Assign issues to + description_wiki_reassign: Assign page to