2024-06-06 22:28:35 +02:00
= form_for @changeset, ~p"/images/#{@comment.image}/comments/#{@comment}", fn f ->
2019-12-06 15:43:01 +01:00
= if @changeset.action do
.alert.alert-danger
p Oops, something went wrong! Please check the errors below.
.block
2021-09-13 01:19:00 +02:00
.communication-edit__wrap
= render PhilomenaWeb.MarkdownView, "_input.html", conn: @conn, f: f, placeholder: "Please read the site rules before posting and use ||spoilers|| for above-rating stuff."
2019-12-06 15:43:01 +01:00
2021-09-13 01:19:00 +02:00
.block__content.field
= text_input f, :edit_reason, class: "input input--wide", placeholder: "Reason for edit"
= error_tag f, :edit_reason
2019-12-06 15:43:01 +01:00
.block__content.communication-edit__actions
2019-12-15 19:04:41 +01:00
=> submit "Edit", class: "button", data: [disable_with: raw("Posting…")]