feat(templates): Add shitty little response form in thread view
This commit is contained in:
parent
cf636077e6
commit
ef5f7af89c
2 changed files with 14 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
<form action="/thread" method="post">
|
<form action="/thread/submit" method="post">
|
||||||
<div>
|
<div>
|
||||||
<label for="title">Title:</label>
|
<label for="title">Title:</label>
|
||||||
<input type="text" id="title" name="title">
|
<input type="text" id="title" name="title">
|
||||||
|
|
|
@ -8,7 +8,19 @@
|
||||||
|
|
||||||
<p>{{ thread.body }}<br><i>Posted at {{ thread.posted }}</i></p>
|
<p>{{ thread.body }}<br><i>Posted at {{ thread.posted }}</i></p>
|
||||||
{% for post in posts -%}
|
{% for post in posts -%}
|
||||||
<li>{{ post.body }}<br><i>Posted at {{ post.posted }}</i></p>
|
<li>{{ post.body }}<br><i>Posted at {{ post.posted }}</i></li>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<form action="/thread/reply" method="post">
|
||||||
|
<input type="hidden" id="thread_id" name="thread_id" value="{{ thread.id }}">
|
||||||
|
<div>
|
||||||
|
<label for="body">Content:</label>
|
||||||
|
<textarea id="body" name="body"></textarea>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="submit" value="Reply">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue