philomena/lib/philomena_web/templates/session/new.html.slime

32 lines
938 B
Text
Raw Permalink Normal View History

h1 Sign in
2024-06-06 22:28:35 +02:00
= form_for @conn, ~p"/sessions", [as: :user], fn f ->
= if @error_message do
.alert.alert-danger
p = @error_message
2024-06-06 22:28:35 +02:00
p = link "Resend unlock instructions", to: ~p"/unlocks/new"
p = link "Resend confirmation email", to: ~p"/confirmations/new"
2024-06-06 22:28:35 +02:00
p = link "Forgot your password?", to: ~p"/passwords/new"
.field
= email_input f, :email, class: "input", required: true, placeholder: "Email", autofocus: true, pattern: ~S/[^\s]+@[^\s]+\.[^\s]+/
= error_tag f, :email
.field
= password_input f, :password, class: "input", required: true, placeholder: "Password"
= error_tag f, :password
.field
=> checkbox f, :remember_me, class: "checkbox"
= label f, :remember_me, "Remember me"
.actions
= submit "Sign in", class: "button"
p
strong
' Haven't read the
a<> href="/pages/rules" site rules
' lately? Make sure you read them before posting or editing metadata!