{% extends "profiles/base.html" %}
{% load pagination_tags %}
{% load profile_tags %}
{% load base_filters %}
{% load perm_tags %}
{% load i18n %}

{% block title %}Users not in Groups{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/reports.css">
{% endblock %}

{% block body %}
{{ block.super }}
<div class="t">
    {% users_nav request.user request.user %}
    <h1>{% trans "Users not in Groups" %}</h1>
	<div class="profiles-wrap">

        {% if users %}
        <table class="table condensed-table table-hover">
        <thead>
            <td>
                <strong>ID</strong>
            </td>
            <td>
                Name
            </td>
            <td>
                Username
            </td>
            <td>
                Email
            </td>
        </thead>
            {% for user in users %}
                <tr>
                    <td>
                        <strong>{{ user.id }}</strong>
                    </td>
                    <td>
                        {% if user.profile.display_name %}
                            {{ user.profile.display_name }}
                        {% else %}
                            {{ user.first_name }} {{ user.last_name }}
                        {% endif %}
                    </td>
                    <td>
                        <a href="{{ user.profile.get_absolute_url }}">{{ user.username }}</a>
                    </td>
                    <td>
                        {{ user.email }}
                    </td>
                </tr>
            {% endfor %}
            </table>
        {% else %}
            <div>{% trans "No users not in groups found." %}</div>
        {% endif %}
    </div>
</div>
{% endblock %}