2019-11-18 17:00:08 +01:00
h1 New Conversation
.block
.block__header
2024-06-06 22:28:35 +02:00
=> link "Conversations", to: ~p"/conversations"
2019-11-18 17:00:08 +01:00
' »
2023-11-23 17:07:49 +01:00
span New Conversation
2019-11-18 17:00:08 +01:00
2022-03-24 17:31:57 +01:00
= case DateTime.compare(DateTime.utc_now(), DateTime.add(@conn.assigns.current_user.created_at, 1_209_600)) do
- :lt ->
.block.block--fixed.block--warning.hidden.js-hidden-warning
h2 Warning!
p
strong> Your account is too new, so your PM will need to be reviewed by staff members.
' This is because it contains an external image. If you are not okay with a moderator viewing this PM conversation, please consider linking the image instead of embedding it (change
code<> ![
' to
code<
| [
| ).
- _ ->
/ Nothing
2024-06-06 22:28:35 +02:00
= form_for @changeset, ~p"/conversations", fn f ->
2019-11-18 17:00:08 +01:00
= if @changeset.action do
.alert.alert-danger
p Oops, something went wrong! Please check the errors below.
.field
.fieldlabel 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
.field
= text_input f, :title, class: "input input--wide", placeholder: "Title", required: true
= error_tag f, :title
= inputs_for f, :messages, fn fm ->
2021-09-13 01:19:00 +02:00
div
= render PhilomenaWeb.MarkdownView, "_input.html", changeset: @changeset, conn: @conn, f: fm, action_icon: "pencil-alt", action_text: "Compose"
2019-11-18 17:00:08 +01:00
2024-06-12 20:50:46 +02:00
.block__content.communication__edit-actions
2020-01-11 20:03:25 +01:00
= submit "Send", class: "button", autocomplete: "off", data: [disable_with: "Sending..."]