pelmeni-shield-vpn/site/templates/new_topic.html

31 lines
1.3 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% 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 %}