Made many buttons and titles more consistent.

This commit is contained in:
Logan Fick
2018-03-12 19:26:55 -04:00
parent 5eadded99c
commit 16a2b0fa18
22 changed files with 57 additions and 57 deletions

View File

@@ -1,10 +1,10 @@
<% title "Edit News: #{@post.title}" %>
<% title "Edit Post: #{@post.title}" %>
<h1>Edit post</h1>
<h1>Edit Post: #{@post.title}</h1>
<%= form_for @post do |f|%>
<%= f.text_field :title %>
<%= render partial: "md_editor", locals: {name: "blogpost[content]", content: @post.content} %>
<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>
<div class="clear"></div>
<p><%= button_to "Delete Post", @post, method: "delete", data: {confirm: "Delete post & comments forever?"}, class: "btn red right" %></p>
<div class="clear"></div>