8 lines
554 B
Plaintext
8 lines
554 B
Plaintext
<h1>Edit post</h1>
|
|
<p id="markdown-note">Note: You can use <%= link_to "Markdown", "https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet", target: "_blank" %>!</p>
|
|
<%= simple_form_for @post do |f|%>
|
|
<%= f.input :title, :label => false %>
|
|
<%= f.text_area :content, :label => false, input_html: {class: "full-width vertical"} %>
|
|
<p><%= f.submit "Update Post", class: "btn blue left" %></p>
|
|
<% end %>
|
|
<p><%= button_to "Delete post", @post, method: "delete", data: {confirm: "Delete post & comments forever?"}, class: "btn red right" %></p> |