{# Group invitation form page. Displays the group invitation form to users with the appropriate permissions. :param form: The group invitation form. :type form: :class:`~canaille.core.endpoints.forms.GroupInvitationForm` :param group: The group to invite members to. :type group: :class:`~canaille.core.models.Group` #} {% extends theme('base.html') %} {% import 'macro/form.html' as fui %} {%- block title -%} {%- trans group_name=group.display_name %}Invite members to {{ group_name }}{% endtrans -%} {%- endblock -%} {% block script %} {% endblock %} {% block submenu %} {% trans %}Groups{% endtrans %} {% trans %}View Group{% endtrans %} {% trans %}Invite Members{% endtrans %} {% endblock %} {% block content %}
{% if form_validated %}

{{ _("Invitation sent") }}

{% trans %}If you need to provide this link by other ways than email, you can copy it here:{% endtrans %}

{% else %}

{% trans group_name=group.display_name %}Invite members to {{ group_name }}{% endtrans %}

{% trans %} After this form is sent, the recipient will receive an email containing a link to join this group. {% endtrans %}
{% call fui.render_form(form) %} {% block email_field scoped %} {{ fui.render_field(form.email, icon="email") }} {% endblock %}
{{ _("View Group") }}
{% endcall %}
{% endif %}
{% endblock %}