add most mod routes
This commit is contained in:
19
app/templates/threads/new_thread.html
Normal file
19
app/templates/threads/new_thread.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{%- from 'common/macros.html' import subheader, babycode_editor_component -%}
|
||||
{%- extends 'base.html' -%}
|
||||
{%- block title -%}drafting a thread{%- endblock -%}
|
||||
{%- block content -%}
|
||||
{{subheader('New thread')}}
|
||||
<form class="plank primary-bg full-width" method="POST">
|
||||
<label for="topic">Topic</label>
|
||||
<select name="topic_id" id="topic" autocomplete="off">
|
||||
{%- for topic in topics -%}
|
||||
<option value="{{topic.id}}" {{'selected' if selected_topic == topic.id else ''}} {{'disabled' if not get_active_user().can_post_to_topic(topic) else ''}}>{{topic.name}}</option>
|
||||
{%- endfor -%}
|
||||
</select>
|
||||
<label for="title">Title</label>
|
||||
<input type="text" id="title" name="title" required>
|
||||
<label for="babycode-content">Starting post</label>
|
||||
{{ babycode_editor_component() }}
|
||||
<input type="submit" value="Create">
|
||||
</form>
|
||||
{%- endblock -%}
|
||||
Reference in New Issue
Block a user