Packages

A full featured, configurable authentication and user management system for Phoenix.

Security advisory: This version has known vulnerabilities. View advisories

Current section

Files

Jump to
coherence priv templates coh.install templates coherence invitation new.html.eex
Raw

priv/templates/coh.install/templates/coherence/invitation/new.html.eex

<%%= form_for @changeset, invitation_path(@conn, :create), [as: :invitation], fn f -> %>
<%%= if @changeset.action do %>
<div class="alert alert-danger">
<p><%%= dgettext "coherence", "Oops, something went wrong! Please check the errors below." %></p>
</div>
<%% end %>
<div class="form-group">
<%%= required_label f, dgettext("coherence", "Name"), class: "control-label" %>
<%%= text_input f, :name, class: "form-control", required: "" %>
<%%= error_tag f, :name %>
</div>
<div class="form-group">
<%%= required_label f, dgettext("coherence", "Email"), class: "control-label" %>
<%%= text_input f, :email, class: "form-control", required: "" %>
<%%= error_tag f, :email %>
</div>
<div class="form-group">
<%%= 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 %>
</div>
<%% end %>