New Conversation

<%= link("Conversations", to: ~p"/conversations") %> » New Conversation
<%= case DateTime.compare(DateTime.utc_now(), DateTime.add(@conn.assigns.current_user.created_at, 1_209_600)) do %> <% :lt -> %> <% _ -> %> <% # Nothing %> <% end %> <%= form_for @changeset, ~p"/conversations", fn f -> %> <%= if @changeset.action do %>

Oops, something went wrong! Please check the errors below.

<% end %>
Specify any user's exact name here, case-sensitive
<%= text_input(f, :recipient, class: "input input--wide", placeholder: "Recipient", required: true) %> <%= error_tag(f, :to) %>
<%= text_input(f, :title, class: "input input--wide", placeholder: "Title", required: true) %> <%= error_tag(f, :title) %>
<%= inputs_for f, :messages, fn fm -> %>
<%= render(PhilomenaWeb.MarkdownView, "_input.html", changeset: @changeset, conn: @conn, f: fm, action_icon: "pencil-alt", action_text: "Compose") %>
<% end %>
<%= submit("Send", class: "button", autocomplete: "off", data: [disable_with: "Sending..."]) %>
<% end %>