<%= form_for @changeset, invitation_path(@conn, :create), [as: :invitation], fn f -> %> <%= if @changeset.action do %>

<%= dgettext "coherence", "Oops, something went wrong! Please check the errors below." %>

<% end %>
<%= required_label f, dgettext("coherence", "Name"), class: "control-label" %> <%= text_input f, :name, class: "form-control", required: "" %> <%= error_tag f, :name %>
<%= required_label f, dgettext("coherence", "Email"), class: "control-label" %> <%= text_input f, :email, class: "form-control", required: "" %> <%= error_tag f, :email %>
<%= submit dgettext("coherence", "Send Invitation"), class: "btn btn-primary" %> <%= link dgettext("coherence", "Cancel"), to: Coherence.Config.logged_out_url("/"), class: "btn" %> <%= if invitation = @conn.assigns[:invitation] do %> <%= link dgettext("coherence", "Resend Invitation!"), to: invitation_path(@conn, :resend, invitation.id), class: "btn" %> <% end %>
<% end %>