2021-01-12 02:10:48 +01:00
|
|
|
{% extends "base" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>simple text board</h1>
|
|
|
|
<h2>create a post</h2>
|
|
|
|
<form action="/create" method="post" accept-charset="utf-8">
|
|
|
|
<label for="author">author name</label>
|
|
|
|
<input type="text" placeholder="author" name="author" required>
|
|
|
|
|
|
|
|
<label for="email">email</label>
|
|
|
|
<input type="text" placeholder="email" name="email">
|
|
|
|
|
|
|
|
<label for="title">title</label>
|
|
|
|
<input type="text" placeholder="title" name="title" required>
|
|
|
|
|
|
|
|
<label for="content">content</label>
|
2021-01-12 17:55:25 +01:00
|
|
|
<textarea type="text" placeholder="content" name="content" rows="8" cols="50" required></textarea>
|
2021-01-12 02:10:48 +01:00
|
|
|
|
|
|
|
<button type="submit">create</button>
|
2021-01-12 17:55:25 +01:00
|
|
|
{% if flash %}<p>{{ flash }}</p>{% endif %}
|
2021-01-12 02:10:48 +01:00
|
|
|
</form>
|
|
|
|
{% endblock content %}
|