20 lines
634 B
HTML
20 lines
634 B
HTML
{% 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 %} |