{% extends 'manage/users/master.twig' %} {% from 'macros.twig' import pagination, container_title %} {% from 'user/macros.twig' import user_profile_warning %} {% from '_layout/input.twig' import input_text, input_csrf, input_select, input_hidden %} {% block manage_content %}
{{ container_title(' Filters') }} {{ input_text('lookup', null, warnings.user.username|default(''), 'text', 'Enter a username') }}
{% if warnings.notices|length > 0 %}
{% for notice in warnings.notices %} {{ notice }} {% endfor %}
{% endif %} {% if warnings.user is not null %}
{{ container_title(' Warn ' ~ warnings.user.username) }} {{ input_csrf() }} {{ input_hidden('warning[user]', warnings.user.id) }} {{ input_text('warning[note]', '', '', 'text', 'Public note') }}
{% endif %}
{{ container_title(' Warnings') }} {% set warnpag = pagination(warnings.pagination, url('manage-users-warnings', {'user': warnings.user.id|default(0)})) %} {{ warnpag }}
User
User IP
Issuer
Issuer IP
Type
Created
Duration
Note
{% for warning in warnings.list %} {{ user_profile_warning(warning, true, true, csrf_token()) }} {% endfor %}
{{ warnpag }}
{% endblock %}