philomena/lib/philomena_web/templates/image/comment/edit.html.slime
2024-06-12 20:50:46 +02:00

15 lines
711 B
Text

= form_for @changeset, ~p"/images/#{@comment.image}/comments/#{@comment}", fn f ->
= if @changeset.action do
.alert.alert-danger
p Oops, something went wrong! Please check the errors below.
.block
.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."
.block__content.field
= text_input f, :edit_reason, class: "input input--wide", placeholder: "Reason for edit"
= error_tag f, :edit_reason
.block__content.communication__edit-actions
=> submit "Edit", class: "button", data: [disable_with: raw("Posting…")]