%= form.fields_for :invitations, Invitation.new do |invitation_form| %>
<%= render 'shared/fields/email_field', form: invitation_form, method: :email, options: {autofocus: true} %>
<%= invitation_form.fields_for :membership, Membership.new do |membership_form| %>
<%= render 'shared/fields/super_select', form: membership_form, method: :role_ids, choices: available_roles, html_options: {multiple: true}, select2_options: {placeholder: t('.membership.roles.default')}, other_options: {label: t('.membership.roles.label')} %>
<% end %>
<% end %>