{% extends "layouts/panel.html" %} {% load i18n %} {% load ravix_ui %} {% block title %}{% trans "Invitations" %}{% endblock %} {% block page_title %}{% trans "Invitations" %}{% endblock %} {% block content %}

{% trans "Invitations" %}

{% trans "Invite someone by email. They choose a name and a password and their address counts as verified." %}

{% trans "Invite someone" %}

{% if enabled %}
{% csrf_token %}
{% include "partials/_form_errors.html" %}
{% include "partials/_field.html" with field=form.email %}
{% include "partials/_field.html" with field=form.role %}
{% else %}

{% trans "Invitations are turned off in the account settings." %} {% trans "Account settings" %}

{% endif %}
{% if invitations %}
{% for inv in invitations %} {% endfor %}
{% trans "Email" %}{% trans "Role" %}{% trans "Invited by" %}{% trans "Sent" %}{% trans "Status" %}
{{ inv.email }} {{ inv.get_role_display }} {{ inv.invited_by.display_name|default:"—" }} {{ inv.created_at|jalali }} {% if inv.state == "pending" %}{% trans "Waiting" %}{% elif inv.state == "used" %}{% trans "Accepted" %}{% elif inv.state == "revoked" %}{% trans "Withdrawn" %}{% else %}{% trans "Expired" %}{% endif %} {% if inv.state == "pending" %}
{% csrf_token %}
{% endif %}
{% else %}
{% trans "No invitations yet." %}
{% endif %}
{% endblock %}