26
lib/eventos_web/templates/coherence/invitation/new.html.eex
Normal file
26
lib/eventos_web/templates/coherence/invitation/new.html.eex
Normal file
@@ -0,0 +1,26 @@
|
||||
<%= 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 %>
|
||||
Reference in New Issue
Block a user