1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
.container-fluid
= form_for Conversation.new, html: {id: "new-conversation",
class: "new-conversation form-horizontal form-do-not-clear"}, remote: true do |conversation|
.form-group
%label#toLabel{for: "contact_ids"}
= t(".to")
= text_field_tag "contact_autocomplete", nil, id: "contact-autocomplete", class: "form-control"
.form-group
%label#subject-label{for: "conversation-subject"}
= t(".subject")
= conversation.text_field :subject,
id: "conversation-subject",
class: "input-block-level form-control",
aria: {labelledby: "subject-label"},
value: "",
placeholder: t("conversations.new.subject_default")
.form-group
%label.sr-only#message-label{for: "new-message-text"} = t(".message")
= text_area_tag "conversation[text]", "",
rows: 5,
id: "new-message-text",
class: "conversation-message-text input-block-level form-control",
aria: {labelledby: "message-label"}
.form-group
= conversation.submit t(".send"), "data-disable-with" => t(".sending"), :class => "btn btn-primary pull-right"
|