Hash :
556d5341
Author :
Thomas de Grivel
Date :
2022-01-13T11:14:02
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
<div class="container-fluid">
<h1><%= gettext "Log in" %></h1>
<.form let={f} for={@conn} action={Routes.user_session_path(@conn, :create)} as={:user}>
<%= if @error_message do %>
<div class="alert alert-danger">
<p><%= @error_message %></p>
</div>
<% end %>
<div class="mb-3">
<%= label f, :login, class: "form-label" %>
<%= text_input f, :login, class: "form-control", required: true %>
<%= error_tag f, :login %>
</div>
<div class="mb-3">
<%= label f, :password, class: "form-label" %>
<%= password_input f, :password, class: "form-control", required: true %>
<%= error_tag f, :password %>
</div>
<div class="mb-3 form-check">
<%= checkbox f, :remember_me, class: "form-check-input" %>
<%= label f, :remember_me, "Keep me logged in for 60 days", class: "form-check-label" %>
</div>
<%= render "recaptcha.html", assigns %>
<div>
<%= submit gettext("Submit"), class: "btn btn-primary" %>
</div>
</.form>
<p>
<%= link gettext("Register"), to: Routes.user_registration_path(@conn, :new) %>
<%= link gettext("Forgot your password ?"), to: Routes.user_reset_password_path(@conn, :new) %>
</p>
</div>