ver 1
This commit is contained in:
20
src/html/newpost.html
Normal file
20
src/html/newpost.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<form method="POST" action="/post">
|
||||
<label for="board">Board:</label>
|
||||
<select id="board" name="board">
|
||||
{% for board in boards %}
|
||||
<option value="{{ board.id }}">{{ board.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<br>
|
||||
<label for="content">Content:</label>
|
||||
<textarea id="content" name="content" rows="4" cols="50" required></textarea>
|
||||
<br>
|
||||
<button type="submit">Post</button>
|
||||
</form>
|
||||
{% if error %}
|
||||
<p style="color: red;">{{ error }}</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user