{% extends 'forum/master.twig' %} {% from 'forum/macros.twig' import forum_header %} {% from '_layout/input.twig' import input_hidden, input_csrf, input_text, input_button, input_select %} {% set title = 'Posting' %} {% set is_reply = posting_topic is defined %} {% block content %}
{{ input_hidden('post[' ~ (is_reply ? 'topic' : 'forum') ~ ']', is_reply ? posting_topic.topic_id : posting_forum.forum_id) }} {{ input_hidden('post[mode]', posting_mode) }} {{ input_csrf('forum_post') }} {{ forum_header(is_reply ? posting_topic.topic_title : input_text('post[title]', 'forum__header__input', '', 'text', 'Enter your title here...'), posting_breadcrumbs, false, is_reply ? '/forum/topic.php?t=' ~ posting_topic.topic_id : '') }} {% if posting_post is defined %} {{ input_hidden('post[id]', posting_post.post_id) }} {% endif %} {% if posting_notices|length > 0 %}
{% for notice in posting_notices %}

{{ notice }}

{% endfor %}
{% endif %}
{{ input_select('post[parser]', constant('MSZ_PARSERS_NAMES'), posting_post.post_parse|default(constant('MSZ_PARSER_BBCODE')), null, null, null, 'forum__post__parser') }}
{% endblock %}