Add creation of posts with logging
This commit is contained in:
parent
56544cd0d4
commit
4948195495
13 changed files with 379 additions and 97 deletions
|
@ -3,9 +3,6 @@
|
|||
{% block content %}
|
||||
<h1>simple text board</h1>
|
||||
<h2>create a post</h2>
|
||||
{% if flash %}
|
||||
<p>{{ flash }}</p>
|
||||
{% endif %}
|
||||
<form action="/create" method="post" accept-charset="utf-8">
|
||||
<label for="author">author name</label>
|
||||
<input type="text" placeholder="author" name="author" required>
|
||||
|
@ -17,9 +14,9 @@
|
|||
<input type="text" placeholder="title" name="title" required>
|
||||
|
||||
<label for="content">content</label>
|
||||
<textarea type="text" placeholder="content" name="content" rows="8" cols="50" required>
|
||||
</textarea>
|
||||
<textarea type="text" placeholder="content" name="content" rows="8" cols="50" required></textarea>
|
||||
|
||||
<button type="submit">create</button>
|
||||
{% if flash %}<p>{{ flash }}</p>{% endif %}
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue