1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/lib/chess_web/templates/session/new.html.eex
2018-02-02 10:31:04 -05:00

22 lines
572 B
Elixir

<h2>Sign in</h2>
<%= form_for @changeset, session_path(@conn, :create), [class: "create-session"], fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<div class="form-group">
<div class="form-field">
<%= input f, :username %>
</div>
<div class="form-field">
<%= input f, :password, as: :password %>
</div>
</div>
<div class="form-group">
<%= submit "Sign in", class: "btn btn-primary" %>
</div>
<% end %>