{% extends "powerpack/admin_base.html" %} {% load djblets_extensions i18n %} {# Page title #} {% block page_title %} {% trans "Import Power Pack Users" %} {% endblock page_title %} {# Form title #} {% block form_title %} {% trans "Import Power Pack Users" %} {% endblock form_title %} {# Page content #} {% block content %} {{block.super}} {% endblock content %} {# Config form content #} {% block form_content %}
{% if can_add_user %}
{% if not license.has_user_cap %}

{% blocktrans %} Your license allows for an unlimited number of users. You do not need to import users into your license. {% endblocktrans %}

{% else %} {% if not can_import_all %} {% url 'powerpack-manage-users' as manage_users_url %}
{% blocktrans with support_url="http://support.beanbaginc.com/" %} There are too many users to import them all for this license. You can import by group, manually add users to your license, or upgrade your license. {% endblocktrans %}
{% endif %}

{% blocktrans count users_remaining=licensed_users_remaining %} You can import 1 more user. {% plural %} You can import {{users_remaining}} more users. {% endblocktrans %}

{% endif %}
{% if license.has_user_cap %}
{{form.source.errors}} {{form.source.label_tag}}
{% endif %} {% else %}

{% blocktrans with url="http://support.beanbaginc.com/" %} You have added the maximum number of users allowed by your license. To upgrade your license, please contact our support channel. {% endblocktrans %}

{% endif %}
{% if licensed_users %}

{% trans "Licensed Users" %}

{% for licensed_user in licensed_users %} {% with user=licensed_user.user %} {% endwith %} {% endfor %}
{% trans "Username" %} {% trans "Name" %} {% trans "Date added" %} {% trans "Notes" %}
{{user.username}} {{user.first_name}} {{user.last_name}} {{licensed_user.added_time|date}} {% if auto_added %}{% trans "Auto-added" %}{% endif %}
{% endif %} {% endblock %} {% block submit_row_buttons %} {% endblock %} {# Post-page scripts #} {% block scripts-post %} {{block.super}} {% endblock scripts-post %}