{% extends "base.html" %} {% block title %}{% if is_ldap_configured %}{{ _('Invite a Guest')}}{% else %}{{ _('Invite another User') }}{% endif %} — {{ service_name }}{% endblock %} {% block content %}

{% if is_ldap_configured %}{{ _('Invite a Guest') }}{% else %}{{ _('Invite another User') }}{% endif %}

{{ _('To invite %(user)s to %(service_name)s, please submit their email address using the form below. They will then receive an email which can be used to complete the registration process.', service_name=service_name, user=(_('a guest') if is_ldap_configured else _('another user'))) }}

{{ invitation_form.csrf_token() }}
{% if mail_send_status is not none %} {% if mail_send_status == mail_send_status.DONE %} {{ _('An invitation has been sent to %(email)s.', email=invitation_form.email.data)}} {% elif mail_send_status == mail_send_status.FAILED %} {{ _('Sending an invitation to %(email)s failed. Please verify that the email address is correct.', email=invitation_form.email.data)}} {% else %} {{ _('An invitation will be sent to %(email)s.', email=invitation_form.email.data)}} {% endif %} {% endif %} {% if has_error %} {{ _('Please enter a valid email address.')}} {% endif %}
{% endblock %}