Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <% include ../partials/header %>
  2.  
  3.  
  4. <div class="container">
  5. <div class="row">
  6. <h1 style="text-align:center">Edit <%= rxpost.name %></h1>
  7. <div style="width:30%; margin:25px auto;">
  8.  
  9. <form action="/posts/<%= rxpost.id %>?_method=PUT" method="POST">
  10. <div class="form-group">
  11. <input class="form-control" type="text" name="rxpost[name]" value="<%= rxpost.name %>">
  12. </div>
  13. <div class="form-group">
  14. <input class="form-control" type="text" name="rxpost[image]" value="<%= rxpost.image %>">
  15. </div>
  16. <div class="form-group">
  17. <input class="form-control" type="text" name="rxpost[description]" value="<%= rxpost.description %>">
  18. </div>
  19. <div class="form-group">
  20. <button class="btn btn-lg btn-primary btn-block">Submit</button>
  21. </div>
  22. </form>
  23.  
  24. <a href="/posts">Go back to view posts</a>
  25. </div>
  26. </div>
  27. </div>
  28.  
  29.  
  30. <% include ../partials/footer %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement