summaryrefslogtreecommitdiffstats
path: root/app/views/messages
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-29 01:16:48 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-29 01:16:48 +0000
commite76e7fd6ea2aa5209130c5ad4685e46ad26bdfa7 (patch)
treebbf1e54d3009ae84bcafa936e9b6e31f4d9d170f /app/views/messages
parent2446d5b83cea0e9b5ac3a0342af66f4824915b66 (diff)
downloadredmine-e76e7fd6ea2aa5209130c5ad4685e46ad26bdfa7.tar.gz
redmine-e76e7fd6ea2aa5209130c5ad4685e46ad26bdfa7.zip
[#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
Diffstat (limited to 'app/views/messages')
-rw-r--r--app/views/messages/_form.html.erb8
1 files changed, 5 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 @@
<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]-->