2022-09-13 13:14:49 +00:00
{% extends 'manage/users/master.twig' %}
2023-07-26 22:43:50 +00:00
{% from 'macros.twig' import pagination , container_title , avatar %}
{% from '_layout/input.twig' import input_hidden , input_csrf , input_text , input_checkbox , input_select %}
2022-09-13 13:14:49 +00:00
{% block manage_content %}
2023-07-26 22:43:50 +00:00
<div class="container">
2023-08-02 22:12:47 +00:00
{{ container_title ( '<i class="fas fa-exclamation-circle fa-fw"></i> Issuing a warning to user #' ~ warn_user .id ~ ' ' ~ warn_user .name ) }}
2022-09-13 13:14:49 +00:00
2023-07-26 22:43:50 +00:00
<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>
2022-09-13 13:14:49 +00:00
{% endblock %}