aboutsummaryrefslogtreecommitdiffstats
path: root/templates/new_post.html
blob: 93de6964c01302488bf245c279ffb463997f311f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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>