{% 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 not license.unlicensed %} {% endif %} {% if not license.unlicensed %} {% if license.expired %} {% else %} {% endif %} {% endif %}
{% trans "License Type:" %} {% if license.unlicensed %} {% blocktrans with license.user_cap as max_users %} Unlicensed (some features can be used for up to {{max_users}} people) {% endblocktrans %} {% elif license.trial %} {% trans "Trial" %} {% else %} {% trans "Subscription" %} {% endif %}
{% trans "Licensed To:" %} {{license.company}}
{% trans "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 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 %}
{% if license.unlicensed %}

{% trans "Activate Power Pack" %}

{% blocktrans %} You can try all of Power Pack's features free for all your users for 30 days with no commitment, or purchase a license today for your server. {% endblocktrans %}
{% trans "Try it free for 30 days" %} {% trans "Purchase a license" %}
{% blocktrans %} If you already have a license file, you can browse for it: {% endblocktrans %}
{% elif license.trial %}

{% trans "Purchase Power Pack" %}

{% blocktrans %} If you're ready to get a year of Power Pack for your server, you can purchase a license today. We'll help you get set up with a license that meets your needs, covering as many or as few users as you'd like, with a payment plan that works best for your organization. {% endblocktrans %}
{% trans "Purchase a license" %}
{% blocktrans %} If you already have a license file, you can browse for it: {% endblocktrans %}
{% else %}

{% trans "Update License" %}

{% blocktrans %} To install a new license for Power Pack, browse for the new license file and click Save below. {% endblocktrans %}
{% endif %}
{{form.license_file.errors}} {{form.license_file}}
{% endwith %}

{% trans "Active Features" %}

{% for feature in extension.features.itervalues %}
{% if feature.summary %}

{{feature.summary}}

{% endif %} {% if not feature.available %}

{{feature.unavailable_reason}}

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