improve mobile sign up and sign in view
This commit is contained in:
parent
76450f7882
commit
92a857533e
2 changed files with 36 additions and 32 deletions
|
|
@ -7,34 +7,36 @@
|
|||
.stream
|
||||
#login_form
|
||||
.login-container
|
||||
%h2
|
||||
= t('users.getting_started.welcome')
|
||||
= form_for(resource, :as => resource_name, :html => {:class => 'new_user_form'}, :url => registration_path(resource_name), :validate => true) do |f|
|
||||
.row
|
||||
.row
|
||||
%fieldset
|
||||
%legend
|
||||
= t('welcome')
|
||||
|
||||
.control-group
|
||||
= f.label :username, t('username')
|
||||
.centered
|
||||
.controls
|
||||
= f.text_field :username
|
||||
%span.host_uri
|
||||
= diaspora_id_host
|
||||
.row
|
||||
.row
|
||||
|
||||
.control-group
|
||||
= f.label :email, t('email')
|
||||
.centered
|
||||
= f.email_field :email
|
||||
.row
|
||||
.row
|
||||
.controls
|
||||
= f.text_field :email
|
||||
|
||||
.control-group
|
||||
= f.label :password, t('password')
|
||||
.centered
|
||||
.controls
|
||||
= f.password_field :password
|
||||
.row
|
||||
.row
|
||||
|
||||
.control-group
|
||||
= f.label :password_confirmation, t('password_confirmation')
|
||||
.centered
|
||||
.controls
|
||||
= f.password_field :password_confirmation
|
||||
.row
|
||||
= f.submit t('registrations.new.create_my_account'), :class => 'login-submit'
|
||||
= link_to t('.sign_up'), new_user_session_path()
|
||||
|
||||
.controls
|
||||
= f.submit t('registrations.new.create_my_account'), :class => 'btn primary'
|
||||
= link_to t('devise.sessions.new.sign_in'), new_user_session_path()
|
||||
|
||||
%footer
|
||||
|
||||
= link_to t('layouts.application.toggle'), toggle_mobile_path
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => 'form-horizontal'}) do |f|
|
||||
%fieldset
|
||||
%legend
|
||||
Log in
|
||||
= t('devise.sessions.new.login')
|
||||
|
||||
.control-group
|
||||
= f.label :username, t('username'), :class => "control-label"
|
||||
|
|
@ -26,8 +26,10 @@
|
|||
= f.submit t('devise.sessions.new.sign_in'), :class => 'btn primary'
|
||||
|
||||
%footer
|
||||
- if display_password_reset_link?
|
||||
= link_to "Forgot Password?", new_password_path(resource_name)
|
||||
|
||||
- if display_registration_link?
|
||||
= link_to t('.sign_up'), new_registration_path(resource_name)
|
||||
= link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name)
|
||||
|
||||
- if display_password_reset_link?
|
||||
= link_to t('devise.passwords.new.forgot_password'), new_password_path(resource_name)
|
||||
|
||||
= link_to t('layouts.application.toggle'), toggle_mobile_path
|
||||
|
|
|
|||
Loading…
Reference in a new issue