{% extends "base.html" %} {% block title %} - {{ t('invite.title') }}{% endblock %} {% block content %}
{% if state == "form" %}

{{ t('invite.create_heading') }}

{{ t('invite.tier_prefix') }} {{ invite.role_label }}.

{% if error %}

{{ error }}

{% endif %}
{% elif state == "success" %}

{{ t('invite.success_heading', username=username) }}

{{ t('invite.success_message') }}

{{ access_key }}

{{ t('invite.success_hint_prefix') }} {{ t('invite.success_hint_path') }}.

{% elif state == "error" %}

🔒 {{ t('invite.error_heading') }}

{% if reason == "expired" %}

{{ t('invite.error_expired') }}

{% elif reason == "username_taken" %}

{{ t('invite.error_username_taken') }}

{% else %}

{{ t('invite.error_generic') }}

{% endif %}
{% endif %}
{% endblock %}