Facebook
From Plabon, 3 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 94
  1. <%- include("./partials/header") %>
  2.  
  3. <div class="ui main text container segment">
  4.         <div class="ui huge header">Edit <%= blog.title %></div>
  5.         <form class="ui form" action="/blogs/<%= blog._id %>?_method=PUT" method="POST">
  6.                 <div class="field">
  7.                         <label>Title</label>
  8.                         <input type="text" name="blog[title]" value="<%= blog.title %>">
  9.                 </div>
  10.                 <div class="field">
  11.                         <label>Image</label>
  12.                         <input type="text" name="blog[image]" value="<%= blog.image %>">
  13.                 </div>
  14.                 <div class="field">
  15.                         <label>Blog Content</label>
  16.                         <textarea name="blog[body]"><%- blog.body %></textarea>
  17.                 </div>
  18.                
  19.                 <input class="ui violet big basic button" type="submit">
  20.         </form>
  21. </div>
  22.  
  23. <%- include("./partials/footer") %>