{% extends theme('base.html') %} {% import 'fomanticui.html' as fui %} {% block script %} {% endblock %} {% block content %}
{% if form_validated %}

{% if request.form["action"] == "generate" %} {{ _("Invitation link") }} {% elif mail_sent %} {{ _("Invitation sent") }} {% else %} {{ _("Invitation not sent") }} {% endif %}

{% if request.form["action"] == "generate" %}
{% trans %}Here is the invitation link you can provide to the user you want to invite:{% endtrans %}
{% elif mail_sent %}
{% set email = form.mail.data %} {% trans %}This invitation link has been sent to {{ email }}{% endtrans %} {% trans %}If you need to provide this link by other ways than email, you can copy it there:{% endtrans %}
{% else %}
{% set email = form.mail.data %} {% trans %}This invitation link could not be sent to {{ email }} due to technical issues.{% endtrans %} {% trans %}However you can copy the link there to provide it by other ways than email:{% endtrans %}
{% endif %}

{{ _("Create a user") }} {% if request.form["action"] == "generate" or mail_sent %} {{ _("Invite another user") }} {% endif %}
{% else %}

{{ _("Invitate an user") }}

{% trans %} After this form is sent, the recipient your indicated will receive an email containing an account creation link. {% endtrans %}
{{ form.hidden_tag() if form.hidden_tag }} {{ fui.render_field(form.uid, icon="user") }} {{ fui.render_field(form.mail, icon="mail") }} {{ fui.render_field(form.groups, icon="users") }}
{{ _("Create a user") }}
{% endif %}
{% endblock %}