{% extends 'manage/users/master.twig' %}
{% from 'macros.twig' import pagination, container_title, avatar %}
{% from '_layout/input.twig' import input_hidden, input_csrf, input_text, input_checkbox, input_select %}

{% block manage_content %}
    <div class="container">
        {{ container_title('<i class="fas fa-exclamation-circle fa-fw"></i> Issuing a warning to user #' ~ warn_user.id ~ ' ' ~ warn_user.name) }}

        <form method="post" enctype="multipart/form-data" action="{{ url('manage-users-warning', {'user': warn_user.id}) }}" class="manage__warning">
            {{ input_csrf() }}

            <div class="manage__warning__field">
                <div class="manage__warning__title">Warning Body</div>
                <div class="manage__warning__desc">A concise explanation of what the user did to deserve this warning and what they should do to prevent further incidents. Please keep in mind that warnings remain publicly visible for 90 days both to the person receiving the warning and other logging in people viewing their profile.</div>
                <div class="manage__warning__body">
                    <textarea name="uw_body" class="input__textarea" tabindex="1">{{ warn_value_body|default() }}</textarea>
                </div>
            </div>

            <div class="manage__warning__actions">
                <button class="input__button" tabindex="2">Issue warning</button>
            </div>
        </form>
    </div>
{% endblock %}
