From e76e7fd6ea2aa5209130c5ad4685e46ad26bdfa7 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 29 Oct 2011 01:16:48 +0000 Subject: [PATCH] [#9489] set id for message_subject and linked it to label, added invisible label Contributed by Romano Licker. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7682 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/messages/_form.html.erb | 8 +++++--- config/locales/de.yml | 1 + config/locales/en.yml | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erb index f0801b302..b3b0e130e 100644 --- a/app/views/messages/_form.html.erb +++ b/app/views/messages/_form.html.erb @@ -3,8 +3,8 @@
-


-<%= f.text_field :subject, :size => 120 %> +


+<%= f.text_field :subject, :size => 120, :id => "message_subject" %> <% if !replying && User.current.allowed_to?(:edit_messages, @project) %> @@ -17,7 +17,9 @@ <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %>

<% end %> -

<%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %>

+

+<%= label_tag "message_content", l(:description_message_content), :class => "hidden-for-sighted" %> +<%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %>

<%= wikitoolbar_for 'message_content' %> diff --git a/config/locales/de.yml b/config/locales/de.yml index 7f1b146d9..777c45b47 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1003,6 +1003,7 @@ de: description_filter: Filter description_search: Suchfeld description_project_scope: Suchbereich + description_message_content: Nachrichteninhalt description_query_sort_criteria_attribute: Sortierattribut description_query_sort_criteria_direction: Sortierrichtung description_available_columns: Verfügbare Spalten diff --git a/config/locales/en.yml b/config/locales/en.yml index 004fd9109..dcdca5fe4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -981,6 +981,7 @@ en: description_filter: Filter description_search: Searchfield description_project_scope: Search scope + description_message_content: Message content description_query_sort_criteria_attribute: Sort attribute description_query_sort_criteria_direction: Sort direction description_available_columns: Available Columns