diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2017-11-21 23:21:01 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2017-11-22 10:57:35 +0100 |
commit | 2e98f140e810d5271258df6905e744737734c666 (patch) | |
tree | 46f703681acfe4692dbbcd1d35a76c3856009ef3 /templates/new_post.html | |
parent | beede75cefd5ae52c2d81b7f183cfa41953b09a4 (diff) | |
download | rocket-blog-2e98f140e810d5271258df6905e744737734c666.tar.gz rocket-blog-2e98f140e810d5271258df6905e744737734c666.tar.bz2 rocket-blog-2e98f140e810d5271258df6905e744737734c666.zip |
Add handlers for creating new Posts.
Diffstat (limited to 'templates/new_post.html')
-rw-r--r-- | templates/new_post.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/new_post.html b/templates/new_post.html new file mode 100644 index 0000000..93de696 --- /dev/null +++ b/templates/new_post.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> + <head> + <title>{{ title }}</title> + </head> + <body> + <h1>Create a new post</h1> + <form id="new_post" name="post" method="post" action="/posts/create"> + <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"> + <input type="checkbox" checked="{{ post.published }}"> + <label>Published</label> + </div> + + <div class="actions"> + <input type="submit" value="Create post"> + </div> + </form> + </body> +</html> |