<form action="" id="comment_form" class="comment-form">
    <input type="hidden" name="Comment[parent_id]" id="comment_parent_id">
    <div class="comment-cancel-reply">
        <a rel="nofollow" id="comment_cancel_reply">Anuluj odpowiedź</a>
    </div>
    <h2 class="respond">Skomentuj</h2>
    {% if not is_granted('ROLE_USER') and comment.enableLoginButton|i|b %}
        <a href="{{ path('wi_front_user_login', { 'relocate': url('wi_front_news_show', { 'id': news.id, 'slug': slugify(news.title), '_fragment': 'comment_form' }) }) }}" title="Zaloguj się">Zaloguj się</a> lub <a href="{{ path('wi_front_user_register') }}">zarejestuj</a>
    {% endif %}
    {% if is_granted('ROLE_USER') %}
        <p>Komentujesz jako <b>{{ app.user.nickname }}</b></p>
    {% endif %}

    <div id="comment_ajax_message"></div>
    {% if not is_granted('ROLE_USER') %}
        <label>Imię:</label>
        <input type="text" name="Comment[name]" value="{{ guest.name ?? '' }}">
        <label>E-mail:</label>
        <input type="email" name="Comment[email]" value="{{ guest.email ?? '' }}">
    {% endif %}
    <label>Treść:</label>
    <textarea name="Comment[content]" id="comment_content" cols="30" rows="10"></textarea>
    <input type="submit" id="comment_submit" class="button" value="Opublikuj">
</form>
