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

{% if mail_sent %} {{ _("Invitation sent") }} {% else %} {{ _("Invitation not sent") }} {% endif %}

{% if 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 there to provide it by other ways than email:{% endtrans %}
{% 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 %}