summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-06-07 23:39:39 +0000
committerubq323 <ubq323>2021-06-07 23:39:39 +0000
commitd4211837747e0fda14cb278c10aad9f7e05e076c (patch)
tree545af927661035a405e6ed9adc8bba1afe990fb3 /apioforum/templates
parent5fd96e6fc69a1ab488630cf4e693efcb7683c4b8 (diff)
edit post
Diffstat (limited to 'apioforum/templates')
-rw-r--r--apioforum/templates/common.html4
-rw-r--r--apioforum/templates/edit_post.html5
2 files changed, 4 insertions, 5 deletions
diff --git a/apioforum/templates/common.html b/apioforum/templates/common.html
index a547f73..0baa1f5 100644
--- a/apioforum/templates/common.html
+++ b/apioforum/templates/common.html
@@ -7,11 +7,11 @@
{% if buttons and post.author == g.user %}
<span class="post-heading-b">
<a class="actionbutton"
- href="{{url_for('thread.edit_post',post_id=post.id,thread_id=thread_id)}}">
+ href="{{url_for('thread.edit_post',post_id=post.id)}}">
edit
</a>
<a class="actionbutton"
- href="{{url_for('thread.delete_post',post_id=post.id,thread_id=thread_id)}}">
+ href="{{url_for('thread.delete_post',post_id=post.id)}}">
delete
</a>
</span>
diff --git a/apioforum/templates/edit_post.html b/apioforum/templates/edit_post.html
index 00673b8..d8eac58 100644
--- a/apioforum/templates/edit_post.html
+++ b/apioforum/templates/edit_post.html
@@ -6,8 +6,7 @@
{% block content %}
<form method="post">
-<textarea name="newcontent">
- the
-</textarea>
+<textarea name="newcontent">{{post.content}}</textarea>
<input type="submit" value="go">
</form>
+{% endblock %}