<%= notice %>
Send invitation
<%= form_with(url: invitation_path) do |form| %>
<% if @user.errors.any? %>
<%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:
<% @user.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :email, style: "display: block" %>
<%= form.email_field :email, required: true, autofocus: true %>
<%= form.submit "Send an invitation" %>
<% end %>
<%= link_to "Back", root_path %>