{% extends 'base.html.twig' %} {% block title %}Ajouter un membre — {{ organization.name }} — VIIZIA{% endblock %} {% block body %} {% from 'admin/organization/_form.html.twig' import field, select_field %}

Ajouter un membre

Organisation : {{ organization.name }}

{{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }} {% if form.vars.errors|length > 0 %}
Le formulaire contient des erreurs :
{% endif %}

Identification du membre

{{ field(form.email, {'icon': 'envelope'}) }}
Si l'email correspond à un compte VIIZIA existant, il est attaché à l'organisation. Sinon, un nouveau compte est créé avec les informations ci-dessous.
{{ field(form.firstName, {'icon': 'user'}) }}
{{ field(form.lastName, {'icon': 'user'}) }}
{{ field(form.password, {'icon': 'key'}) }}

Rôle et accès

{% for child in form.role %}
{% endfor %}
{% for child in form.accessMode %}
{% endfor %}

{{ form.accessMode.vars.help }}

Annuler
{{ form_end(form) }} {% endblock %}