diff options
Diffstat (limited to 'templates/new_post.html')
-rw-r--r-- | templates/new_post.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/new_post.html b/templates/new_post.html index a3a1a0f..7ef49dd 100644 --- a/templates/new_post.html +++ b/templates/new_post.html @@ -1,18 +1,18 @@ <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 class="field string required"> + <label for="post_title">Title:</label> + <input type="text" name="title" id="post_title" value="{{ post.title }}"> </div> - <div class="field"> - <label>Contents:</label> - <textarea name="body">{{ post.body }}</textarea> + <div class="field textarea required"> + <label for="post_body">Contents:</label> + <textarea id="post_body" name="body">{{ post.body }}</textarea> </div> - <div class="field"> - <input type="checkbox" checked="{{ post.published }}"> - <label>Published</label> + <div class="field checkbox"> + <input type="checkbox" id="post_published" checked="{{ post.published }}"> + <label for="post_published">Published</label> </div> <div class="actions"> |