diff options
Diffstat (limited to 'templates/new_post.html')
-rw-r--r-- | templates/new_post.html | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/templates/new_post.html b/templates/new_post.html index 93de696..a3a1a0f 100644 --- a/templates/new_post.html +++ b/templates/new_post.html @@ -1,29 +1,21 @@ -<!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> +<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"> + <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="Create post"> - </div> - </form> - </body> -</html> + <div class="actions"> + <input type="submit" value="Create post"> + </div> +</form> |