{% extends 'team/base.html.twig' %}
{% import 'macros.html.twig' as macros %}

{% block title %}Send clarification request - {{ parent() }}{% endblock %}

{% block extrahead %}
    {{ parent() }}
    {{ macros.mathjax_head() }}
{% endblock %}

{% block content %}
    <div class="mt-3 container">
        <div class="card card-body clarificationform">
            <h1 class="text-center">Send Clarification Request</h1>

            {{ form_start(form) }}
            {{ form_row(form.recipient) }}
            {{ form_row(form.subject) }}
            {{ form_row(form.message) }}
            <div class="mb-3">
                <div class="card">
                    <div class="card-body">
                        <label class="rendered-preview-badge">rendered preview</label>
                        <div id="messagepreview">Start typing to see a preview of your message</div>
                    </div>
                </div>
            </div>
            <div>
                <button type="submit" name="submit" class="btn btn-primary">
                    <i class="fas fa-envelope"></i> Send
                </button>
            </div>
            {{ form_end(form) }}
        </div>
    </div>
{% endblock %}

{% block extrafooter %}
    <script>
        setupPreviewClarification($('#team_clarification_message') , $('#messagepreview'), true);
    </script>
{% endblock %}
