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

{% trans "Add users to license" %}

{% if not has_user_cap %} {% blocktrans %} Your license allows for an unlimited number of users. You do not need to add users to your license. {% endblocktrans %} {% elif can_add_user %} {% blocktrans count users_remaining=licensed_users_remaining %} You can add 1 more user to your license. {% plural %} You can add {{users_remaining}} more users to your license. {% endblocktrans %} {% 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 has_user_cap %}
{{form.users.errors}} {{form.users.label_tag}} {{form.users}}
{% endif %}
{% if licensed_users and has_user_cap %}

{% trans "Licensed Users" %}

{% for licensed_user in licensed_users %} {% with user=licensed_user.user %} licensed_user_count %} class="user-exceeds-limit"{% endif %}> {% endwith %} {% endfor %}
{% trans "Username" %} {% trans "Name" %} {% trans "Date added" %} {% trans "Notes" %}
{% if user %}{{user.first_name}} {{user.last_name}}{% endif %} {{licensed_user.added_time|date}} {% if auto_added %}
{% trans "Auto-added" %}
{% endif %} {% if forloop.counter > licensed_user_count %}
{% trans "Not currently licensed" %}
{% endif %}
{% endif %} {% endblock form_content %} {% block submit_row_buttons %} {% if licensed_users and has_user_cap %} {% endif %} {% endblock %} {# Post-page scripts #} {% block scripts-post %} {{block.super}} {% endblock scripts-post %}