31 lines
1.3 KiB
HTML
31 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
||
|
||
{% block title %}Создать новую тему{% endblock %}
|
||
|
||
{% block content %}
|
||
<h1>СОЗДАНИЕ НОВОЙ ТЕМЫ НА ФОРУМЕ</h1>
|
||
|
||
<form action="{{ url_for('new_topic') }}" method="POST" style="max-width: 700px;">
|
||
<div class="form-group">
|
||
<label for="category_id">Раздел форума:</label>
|
||
<select name="category_id" id="category_id" required>
|
||
{% for cat in categories %}
|
||
<option value="{{ cat.id }}">{{ cat.title }}</option>
|
||
{% endfor %}
|
||
</select>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label for="title">Заголовок темы:</label>
|
||
<input type="text" name="title" id="title" required placeholder="Краткое и ёмкое название темы...">
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label for="content">Текст сообщения:</label>
|
||
<textarea name="content" id="content" required placeholder="Опишите ситуацию, вопрос по оптике, локацию или предложите идею съемки..."></textarea>
|
||
</div>
|
||
|
||
<button type="submit" class="btn btn-primary">Создать тему</button>
|
||
<a href="{{ url_for('forum') }}" class="btn" style="margin-left: 8px;">Отмена</a>
|
||
</form>
|
||
{% endblock %}
|