]> source.dussan.org Git - redmine.git/commitdiff
[#9489] set id for message_subject and linked it to label, added invisible label
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 29 Oct 2011 01:16:48 +0000 (01:16 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 29 Oct 2011 01:16:48 +0000 (01:16 +0000)
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
config/locales/de.yml
config/locales/en.yml

index f0801b3028f06c685ac9d960c4c670359505661a..b3b0e130efa0b31f47601d0e42238d4a16b9b520 100644 (file)
@@ -3,8 +3,8 @@
 
 <div class="box">
 <!--[form:message]-->
-<p><label><%= l(:field_subject) %></label><br />
-<%= f.text_field :subject, :size => 120 %>
+<p><label for="message_subject"><%= l(:field_subject) %></label><br />
+<%= f.text_field :subject, :size => 120, :id => "message_subject" %>
 
 <% if !replying && User.current.allowed_to?(:edit_messages, @project) %>
     <label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label>
@@ -17,7 +17,9 @@
   <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p>
 <% end %>
 
-<p><%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p>
+<p>
+<%= 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' %></p>
 <%= wikitoolbar_for 'message_content' %>
 <!--[eoform:message]-->
 
index 7f1b146d916c6c3e997c6b56db1e81b2a1a5cb72..777c45b4730647ad098ec56967c022b666c30750 100644 (file)
@@ -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
index 004fd9109615ba6ca846e959f3c930b086106447..dcdca5fe4c266c3efbb3b3cf0fb58cd303c3960f 100644 (file)
@@ -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