Echo Writes Code

new_page.tera.html

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
{% extends "_base.tera.html" %}

{% block title %}Create New Page{% endblock %}

{% block content %}
<h1>Create New Page</h1>
<form action="/api/page/new" method="POST">
  <div>
    <label for="new-page-slug">Slug</label>
    <input id="new-page-slug" name="slug" placeholder="should-look-like-this" type="text" required>
  </div>
  <div>
    <label for="new-page-title">Title</label>
    <input id="new-page-title" name="title" placeholder="Should Look Like This" type="text" required>
  </div>
  <div>
    <label for="new-page-content">Content</label>
    <textarea id="new-page-content" name="content" placeholder="# Write some Markdown..." required></textarea>
  </div>
  <div>
    <label for="new-page-tags">Tags</label>
    <input id="new-page-tags" name="tags" placeholder="this-is-a-tag, this-is-a-second-tag" type="text">
  </div>
  <div>
    <input type="submit" value="Create Page">
  </div>
</form>
{% endblock %}