philomena/lib/philomena_web/templates/pow/session/new.html.eex

25 lines
670 B
Elixir
Raw Normal View History

2019-10-31 18:57:39 +01:00
<h1>Sign in</h1>
<%= form_for @changeset, @action, [as: :user], fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<%= label f, Pow.Ecto.Schema.user_id_field(@changeset) %>
<%= text_input f, Pow.Ecto.Schema.user_id_field(@changeset) %>
<%= error_tag f, Pow.Ecto.Schema.user_id_field(@changeset) %>
<%= label f, :password %>
<%= password_input f, :password %>
<%= error_tag f, :password %>
<div>
<%= submit "Sign in" %>
</div>
<% end %>
<span><%= link "Register", to: Routes.pow_registration_path(@conn, :new) %></span>