add edit thread routes

This commit is contained in:
2026-04-29 21:42:22 +03:00
parent 648b310e13
commit d74dd6c5f3
3 changed files with 31 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
{%- from 'common/macros.html' import subheader, babycode_editor_component -%}
{%- extends 'base.html' -%}
{%- block title -%}editing thread "{{thread.title}}"{%- endblock -%}
{%- block content -%}
{{subheader('Rename thread "%s"' % thread.title, 'You can change the thread title here. To edit the OP of this thread, press the Edit button on the post instead.')}}
<form class="plank primary-bg full-width" method="POST">
<label for="title">New title</label>
<input type="text" id="title" name="title" required value="{{thread.title}}">
<input type="submit" value="Save">
</form>
{%- endblock -%}