22 lines
882 B
HTML
22 lines
882 B
HTML
{% from "common/macros.html" import babycode_editor_component %}
|
|
{% extends "base.html" %}
|
|
{% block title %}drafting a thread{% endblock %}
|
|
{% block content %}
|
|
<div class="darkbg settings-container">
|
|
<h1>New thread</h1>
|
|
<form method="post">
|
|
<label for="topic_id">Topic</label>
|
|
<select name="topic_id" id="topic_id" autocomplete="off">
|
|
{% for topic in all_topics %}
|
|
<option value="{{ topic['id'] }}" {{"selected" if (request.args.get('topic_id')) == (topic['id'] | string) else ""}}>{{ topic['name'] }}</option>
|
|
{% endfor %}
|
|
</select><br>
|
|
<label for="title">Thread title</label>
|
|
<input type="text" id="title" name="title" placeholder="Required" required>
|
|
<label for="initial_post">Post body</label><br>
|
|
{{ babycode_editor_component("initial_post") }}
|
|
<input type="submit" value="Create thread">
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|