Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% include ../partials/header %>
- <div class="container">
- <div class="row">
- <h1 style="text-align:center">Edit <%= rxpost.name %></h1>
- <div style="width:30%; margin:25px auto;">
- <form action="/posts/<%= rxpost.id %>?_method=PUT" method="POST">
- <div class="form-group">
- <input class="form-control" type="text" name="rxpost[name]" value="<%= rxpost.name %>">
- </div>
- <div class="form-group">
- <input class="form-control" type="text" name="rxpost[image]" value="<%= rxpost.image %>">
- </div>
- <div class="form-group">
- <input class="form-control" type="text" name="rxpost[description]" value="<%= rxpost.description %>">
- </div>
- <div class="form-group">
- <button class="btn btn-lg btn-primary btn-block">Submit</button>
- </div>
- </form>
- <a href="/posts">Go back to view posts</a>
- </div>
- </div>
- </div>
- <% include ../partials/footer %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement