{% extends "base.html" %} {% block title %}{{ t('License & Modules') }}{% endblock %} {% block content %}

{{ t('License & Modules') }}

{% if lic.licensed %}{{ t('Licensed to') }} {{ lic.data.licensee }}{% else %}{{ t('Development mode: no license file, all modules enabled.') }}{% endif %}
{% if lic.licensed and not lic.valid %}
{{ lic.error }}
{% endif %} {% if lic.licensed %}
{{ t('Users') }}
{{ usage.users }}{% if lic.limit('max_users') %} / {{ lic.limit('max_users') }}{% endif %}
{{ t('active') }}
{{ t('Branches') }}
{{ usage.branches }}{% if lic.limit('max_branches') %} / {{ lic.limit('max_branches') }}{% endif %}
{{ t('Expires') }}
{{ lic.data.expires or t('Never') }}
{{ t('Issued') }} {{ lic.data.issued }}
{% endif %}
{% if not can('modules') %}
{{ t('Modules and the type of business are managed by your software provider.') }}
{% endif %}
{% if not single_edition %}

{{ t('Type of business') }}

{{ t('Choose what this company does. Only its modules are switched on; the others disappear from menus, forms and reports. Nothing is deleted — switching a module on again brings everything back.') }}

{% for key, b in business_types.items() %} {% endfor %}
{% endif %}
{% for key, m in modules.items() %} {% set licensed = key in lic.modules %} {% endfor %}
{{ t('Module') }}{{ t('Description') }}{{ t('License') }}{{ t('In use') }}
{{ m.name_ar if rtl else m.name }}
{{ key }}
{{ m.desc }} {% if licensed %}{{ t('Licensed') }}{% else %}{{ t('Not licensed') }}{% endif %} {% if m.core %}{{ t('Always') }} {% elif licensed %} {% else %}—{% endif %}
{{ t('To add modules, contact your software provider for an updated license file.') }}
{% if can('modules') %}
{% endif %}
{% endblock %}