post replacement: add "Replace Image" dialog to post sidebar.

This commit is contained in:
evazion
2017-03-31 13:37:57 -05:00
parent df7cd67a7d
commit 4e841c4ea5
5 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<%= simple_form_for(@post, url: replace_moderator_post_post_path, method: :post) do |f| %>
<h1>Replace Image</h1>
<p>
Delete the current image and replace it with another one, keeping
everything else in the post intact. This is meant for upgrading
lower-quality images, such as image samples, to higher-quality versions.
</p>
<%= f.input :source, label: "New Source", input_html: { value: "" } %>
<% end %>