ASP Classic blog framework - BrainOrdure
Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- <div class="row">
- <div class="col-lg-8">
- <div class="card shadow-sm">
- <div class="card-body">
- <h1 class="h3 mb-4">Edit Post</h1>
-
- <form method="post" action="/posts/<%= H(post.PostID) %>">
- <div class="mb-3">
- <label class="form-label" for="Title">Title</label>
- <input class="form-control" type="text" id="Title" name="Title" value="<%= H(post.Title) %>" required>
- </div>
-
- <div class="mb-3">
- <label class="form-label" for="Summary">Summary</label>
- <textarea class="form-control" id="Summary" name="Summary" rows="3"><%= H(post.Summary) %></textarea>
- </div>
-
- <div class="mb-3">
- <label class="form-label" for="Body">Body</label>
- <textarea class="form-control" id="Body" name="Body" rows="10" required><%= H(post.Body) %></textarea>
- </div>
-
- <div class="mb-4">
- <label class="form-label" for="CategoryID">Category ID</label>
- <input class="form-control" type="number" id="CategoryID" name="CategoryID" min="0" value="<%= H(post.CategoryID) %>">
- </div>
-
- <div class="d-flex flex-wrap gap-2">
- <button class="btn btn-primary" type="submit">Update Post</button>
- <a class="btn btn-outline-secondary" href="/posts">Cancel</a>
- </div>
- </form>
-
- <form method="post" action="/posts/<%= H(post.PostID) %>/delete" class="mt-3">
- <button class="btn btn-outline-danger" type="submit">Delete Post</button>
- </form>
- </div>
- </div>
- </div>
- </div>
|