aboutsummaryrefslogtreecommitdiffstats
path: root/templates/edit_post.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-01-14 12:39:50 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-01-14 12:39:50 +0100
commit0dae37a2e98c13fbc78acd58b86565fd6f14c654 (patch)
tree681be6b03971acca3f57fd30d613909b60aaa984 /templates/edit_post.html
parenta77f6e9d27f98bc36d0911ce58c109f4a18bd835 (diff)
downloadrocket-blog-0dae37a2e98c13fbc78acd58b86565fd6f14c654.tar.gz
rocket-blog-0dae37a2e98c13fbc78acd58b86565fd6f14c654.tar.bz2
rocket-blog-0dae37a2e98c13fbc78acd58b86565fd6f14c654.zip
Split out layout from templates.
Diffstat (limited to 'templates/edit_post.html')
-rw-r--r--templates/edit_post.html46
1 files changed, 19 insertions, 27 deletions
diff --git a/templates/edit_post.html b/templates/edit_post.html
index 9154e3d..ef9c79a 100644
--- a/templates/edit_post.html
+++ b/templates/edit_post.html
@@ -1,30 +1,22 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Edit {{ post.title }}</title>
- </head>
- <body>
- <h1>Edit post</h1>
- <form id="new_post" name="post" method="post" action="/posts/update">
- <input type="hidden" name="id" value="{{ post.id }}">
- <div class="field">
- <label>Title:</label>
- <input type="text" name="title" value="{{ post.title }}">
- </div>
+<h1>Edit post</h1>
+<form id="new_post" name="post" method="post" action="/posts/update">
+ <input type="hidden" name="id" value="{{ post.id }}">
+ <div class="field">
+ <label>Title:</label>
+ <input type="text" name="title" value="{{ post.title }}">
+ </div>
- <div class="field">
- <label>Contents:</label>
- <textarea name="body">{{ post.body }}</textarea>
- </div>
+ <div class="field">
+ <label>Contents:</label>
+ <textarea name="body">{{ post.body }}</textarea>
+ </div>
- <div class="field">
- <input type="checkbox" checked="{{ post.published }}">
- <label>Published</label>
- </div>
+ <div class="field">
+ <input type="checkbox" checked="{{ post.published }}">
+ <label>Published</label>
+ </div>
- <div class="actions">
- <input type="submit" value="Save">
- </div>
- </form>
- </body>
-</html>
+ <div class="actions">
+ <input type="submit" value="Save">
+ </div>
+</form>