Use aria-labelledby for conversations
This commit is contained in:
parent
4819544030
commit
5fd89961c4
3 changed files with 25 additions and 8 deletions
|
|
@ -7,8 +7,16 @@
|
||||||
= owner_image_tag(:thumb_small)
|
= owner_image_tag(:thumb_small)
|
||||||
.media-body
|
.media-body
|
||||||
= form_for [conversation, Message.new], html: {class: "control-group"} do |message|
|
= form_for [conversation, Message.new], html: {class: "control-group"} do |message|
|
||||||
= message.text_area :text, rows: 5, tabindex: 1, class: "form-control form-group"
|
.form-group
|
||||||
= message.submit t("conversations.show.reply").capitalize,
|
%label#messageLabel.sr-only{for: "message_text"}
|
||||||
|
= t("conversations.new.message")
|
||||||
|
= message.text_area :text,
|
||||||
|
rows: 5,
|
||||||
|
tabindex: 1,
|
||||||
|
class: "form-control form-group",
|
||||||
|
aria: {labelledby: "messageLabel"}
|
||||||
|
|
||||||
|
= message.submit t("conversations.show.reply"),
|
||||||
"data-disable-with" => t("conversations.show.replying"),
|
"data-disable-with" => t("conversations.show.replying"),
|
||||||
class: "btn btn-primary pull-right", tabindex: 2
|
class: "btn btn-primary pull-right", tabindex: 2
|
||||||
.clearfix
|
.clearfix
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,22 @@
|
||||||
.container-fluid
|
.container-fluid
|
||||||
= form_for Conversation.new, html: {class: "form-horizontal form_do_not_clear"}, remote: true do |conversation|
|
= form_for Conversation.new, html: {class: "form-horizontal form_do_not_clear"}, remote: true do |conversation|
|
||||||
.form-group
|
.form-group
|
||||||
%label{ for: 'contact_ids' }
|
%label#toLabel{for: "contact_ids"}
|
||||||
= t('.to')
|
= t(".to")
|
||||||
= text_field_tag "contact_autocomplete", nil, class: "form-control"
|
= text_field_tag "contact_autocomplete", nil, class: "form-control"
|
||||||
.form-group
|
.form-group
|
||||||
%label{ for: 'conversation_subject' }
|
%label#subjectLabel{for: "conversation_subject"}
|
||||||
= t('.subject')
|
= t(".subject")
|
||||||
= conversation.text_field :subject, class: 'input-block-level form-control'
|
= conversation.text_field :subject,
|
||||||
|
class: "input-block-level form-control",
|
||||||
|
aria: {labelledby: "subjectLabel"}
|
||||||
.form-group
|
.form-group
|
||||||
= text_area_tag "conversation[text]", '', rows: 5, class: 'input-block-level form-control'
|
%label#messageLabel.sr-only{for: "conversation_text"}
|
||||||
|
= t(".message")
|
||||||
|
= text_area_tag "conversation[text]",
|
||||||
|
"",
|
||||||
|
rows: 5,
|
||||||
|
class: "input-block-level form-control",
|
||||||
|
aria: {labelledby: "messageLabel"}
|
||||||
.form-group
|
.form-group
|
||||||
= conversation.submit t('.send'), 'data-disable-with' => t('.sending'), class: 'btn btn-primary pull-right'
|
= conversation.submit t('.send'), 'data-disable-with' => t('.sending'), class: 'btn btn-primary pull-right'
|
||||||
|
|
|
||||||
|
|
@ -352,6 +352,7 @@ en:
|
||||||
to: "To"
|
to: "To"
|
||||||
subject: "Subject"
|
subject: "Subject"
|
||||||
subject_default: "No subject"
|
subject_default: "No subject"
|
||||||
|
message: "Message"
|
||||||
send: "Send"
|
send: "Send"
|
||||||
sending: "Sending..."
|
sending: "Sending..."
|
||||||
abandon_changes: "Abandon changes?"
|
abandon_changes: "Abandon changes?"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue