debshots/app/views/devise/sessions/new.slim

62 lines
2.1 KiB
Text

// Login form (sign_in)
.row
.small-8.columns.small-centered
div.callout
p
' You are not required to log in to upload new screenshots.
' Without logging in all your uploads will have to be moderated
' by the website's staff to avoid inappropriate images getting published.
' This may take up to a day.
p
' If you decide to login you will be able to manage your own
' uploads later. And others can see how much you contributed already.
' In addition once your first screenshot is approved you will be able
' to upload further screenshots without moderation.
' Please use any of the below services to log you in.
' You do not need to create an account at this site.
p
' If you are associated to the Debian project you will
' automatically be recognized if you have a certificate
' from the
a href='https://sso.debian.org/' Debian SSO
' installed in your browser.
.row
.text-center
p
= link_to image_tag('/images/sso/google.png'), user_google_oauth2_omniauth_authorize_path
p
= link_to image_tag('/images/sso/github.png'), user_github_omniauth_authorize_path
p
= link_to image_tag('/images/sso/stackexchange.png'), user_stackexchange_omniauth_authorize_path
p
= link_to image_tag('/images/sso/launchpad.png'), user_launchpad_omniauth_authorize_path
p
= link_to image_tag('/images/sso/amazon.png'), user_amazon_omniauth_authorize_path
hr
.row
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
= f.hidden_field :provider, value: 'local'
.small-2.columns
b Admin only…
.small-5.columns
= f.email_field :email, autofocus: true, placeholder: 'email address'
.small-4.columns
= f.password_field :password, autocomplete: "off", placeholder: 'password'
.small-1.columns
= f.submit "Log in", class: 'button'
/ - if devise_mapping.rememberable?
/ .small-6.columns
/ = f.check_box :remember_me
/ .small-6.columns
/ = f.label :remember_me
/ = render "devise/shared/links"