aboutsummaryrefslogblamecommitdiff
path: root/views/new-post.handlebars
blob: 19984eeb74af3a0954c1eeb3b4a6798323ac4496 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                       











                                                                                             
      
<div class="container">
  <h1 class="mt-2">{{ title }}</h1>
  <form action="/new-post" method="post" accept-charset="utf-8">
    <div class="mb-3">
      <label for="post_title" class="form-label">Post title:</label>
      <input name="title" type="text" class="form-control" id="post_title" required>
    </div>
    <div class="mb-3">
      <label for="post_text" class="form-label">Post text:</label>
      <textarea name="text" class="form-control" id="post_text" rows="3" required></textarea>
    </div>
    <button type="submit" class="btn">Submit</button>
  </form>
</div>