Permalink
Browse files

[#667] set id for message_subject and linked it to label,

added invisible label
  • Loading branch information...
1 parent 4717a24 commit 207af21553981cfb65702c4cd419dacade233d86 Romano Licker committed with meineerde Oct 20, 2011
Showing with 7 additions and 3 deletions.
  1. +5 −3 app/views/messages/_form.rhtml
  2. +1 −0 config/locales/de.yml
  3. +1 −0 config/locales/en.yml
@@ -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]-->
View
@@ -985,6 +985,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
View
@@ -967,6 +967,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

0 comments on commit 207af21

Please sign in to comment.