aboutsummaryrefslogtreecommitdiffstats
path: root/templates/new_post.html
blob: 7ef49dd5fb29794435fd67b31dac7b7b28cc2897 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<h1>Create a new post</h1>
<form id="new_post" name="post" method="post" action="/posts/create">
  <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 textarea required">
    <label for="post_body">Contents:</label>
    <textarea id="post_body" name="body">{{ post.body }}</textarea>
  </div>

  <div class="field checkbox">
    <input type="checkbox" id="post_published" checked="{{ post.published }}">
    <label for="post_published">Published</label>
  </div>

  <div class="actions">
    <input type="submit" value="Create post">
  </div>
</form>