{% from "library.j2" import form_button, render_errors %}
{{- invite_form.csrf_token -}}

{% trans %}Create new invitation{% endtrans %}

{% trans %}Create a new invitation link to invite more users to your Snikket service by clicking the button below.{% endtrans %}

{#- -#} {{ invite_form.type_.label.text }} {{- invite_form.type_ -}}
{{ invite_form.lifetime.label }}
{{ invite_form.lifetime }}
{# NOTE: This is for when/if we ever support multi-group invites. Also see the NOTE in admin.py {{ invite_form.circles.label(class="required") }} {%- for choice in invite_form.circles -%} {{ choice }}{{ choice.label }} {%- endfor -%} #} {{- invite_form.circles.label -}}
{{ invite_form.circles }}
{%- call render_errors(invite_form.circles) -%}{%- endcall -%}
{%- call form_button("create_link", invite_form.action_create_invite, class="primary") %}{% endcall -%}