philomena/lib/philomena_web/templates/topic/post/edit.html.slime

17 lines
757 B
Text
Raw Normal View History

2024-06-06 22:28:35 +02:00
= form_for @changeset, ~p"/forums/#{@post.topic.forum}/topics/#{@post.topic}/posts/#{@post}", fn f ->
2019-12-06 16:14:25 +01:00
= if @changeset.action do
.alert.alert-danger
p Oops, something went wrong! Please check the errors below.
.block
2024-06-12 20:50:46 +02:00
.communication__edit-wrap
2019-12-06 16:14:25 +01:00
.field
= render PhilomenaWeb.MarkdownView, "_input.html", conn: @conn, f: f, placeholder: "Please read the site rules before posting and use ||spoilers|| for NSFW stuff in SFW forums."
2019-12-06 16:14:25 +01:00
.block__content.field
2019-12-06 16:14:25 +01:00
= text_input f, :edit_reason, class: "input input--wide", placeholder: "Reason for edit"
= error_tag f, :edit_reason
2024-06-12 20:50:46 +02:00
.block__content.communication__edit-actions
2019-12-15 19:04:41 +01:00
=> submit "Edit", class: "button", data: [disable_with: raw("Posting…")]