{% extends "wagtailadmin/base.html" %}
{% load i18n %}
{% block titletag %}{% trans "groups" %}{% endblock %}
{% block extra_js %}
    {{ block.super }}
    <script>
        window.headerSearch = {
            url: "{% url 'wagtailusers_groups:index' %}",
            termInput: "#id_q",
            targetOutput: "#group-results"
        }
    </script>
{% endblock %}

{% block content %}
    {% trans "groups" as groups_str %}
    {% trans "Add a group" as add_a_group_str %}
    {% url "wagtailusers_groups:add" as add_link %}
    {% include "wagtailadmin/shared/header.html" with title=groups_str action_url=add_link action_text=add_a_group_str icon="group" search_url="wagtailusers_groups:index" %}

    <div class="nice-padding">
        <div id="group-results" class="groups">
            {% include "wagtailusers/groups/results.html" %}
        </div>
    </div>
{% endblock %}
