{% extends "extensions/configure_extension.html" %} {% load beanbag_licensing djblets_extensions future i18n %} {# CSS #} {% block css %} {{block.super}} {% endblock css %} {# Form title #} {% block form_title %} {% trans "Configure Power Pack" %} {% endblock form_title %} {# Config form content #} {% block form_content %} {% with license=extension.license license_settings=extension.license_settings %} {% if license.valid_install_key %}
{% if license.expired %} {% else %} {% endif %}
{% trans "License Type:" %} {% if license.trial %} {% trans "Trial" %} {% else %} {% trans "Subscription" %} {% endif %}
{% trans "Licensed To:" %} {{license.company}}
{% trans "Licensed Users:" %} {% if license.has_user_cap %} {{license_settings.licensed_user_count}} out of {{license.user_cap}} {% if license_settings.licensed_user_count == 0 %}
{% trans "Power Pack is enabled, but there are no assigned users." %}
{% endif %} {% else %} {% trans "Unlimited" %} {% endif %} {% trans "Manage licensed users" %}
{% trans "Expired:" %}

{{extension.license.expiration}} {% if not license.hard_expired %} {% blocktrans with grace_period=license.grace_period %} (Within {{grace_period}} day grace period) {% endblocktrans %} {% endif %}

{% if license.in_perpetual_user_mode %}

{% blocktrans with num_perpetual_users=license.num_perpetual_users %} Your trial has expired, but you can still use Power Pack for free for up to {{num_perpetual_users}} users! {% endblocktrans %}

{% endif %}

{% if license.trial %} {% blocktrans with url="https://www.reviewboard.org/powerpack/purchase/" %} To purchase a license, visit the purchase page. {% endblocktrans %} {% else %} {% blocktrans with url="http://support.beanbaginc.com/" %} To renew your license, contact our support channel. {% endblocktrans %} {% endif %}

{% trans "Expires:" %} {{extension.license.expiration}}
{% else %}{# valid_install_key #}

{% trans "The license file is not valid for this server" %}

{% blocktrans with url="https://www.reviewboard.org/powerpack/purchase/" %} To purchase a valid license, visit the purchase page. {% endblocktrans %}

{% blocktrans with email="support@beanbaginc.com" %} If you believe this is an error, please contact us. {% endblocktrans %}

{% endif %} {% endwith %} {{block.super}} {% endblock form_content %}