New mobile_web registrations
This commit is contained in:
parent
1f2d305bd1
commit
6c6be3e22a
3 changed files with 27 additions and 13 deletions
|
|
@ -773,3 +773,9 @@ textarea#conversation_text {
|
||||||
-o-transition: background-position 0.1s linear;
|
-o-transition: background-position 0.1s linear;
|
||||||
transition: background-position 0.1s linear;
|
transition: background-position 0.1s linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.registrations_error,
|
||||||
|
.registrations_notice {
|
||||||
|
color: #DF0101;
|
||||||
|
text-shadow: 1px 1px 5px #666;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class RegistrationsController < Devise::RegistrationsController
|
||||||
else
|
else
|
||||||
@user.errors.delete(:person)
|
@user.errors.delete(:person)
|
||||||
|
|
||||||
flash[:error] = @user.errors.full_messages.join(";")
|
flash[:error] = @user.errors.full_messages.join(" - ")
|
||||||
Rails.logger.info("event=registration status=failure errors='#{@user.errors.full_messages.join(', ')}'")
|
Rails.logger.info("event=registration status=failure errors='#{@user.errors.full_messages.join(', ')}'")
|
||||||
render :new
|
render :new
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -4,39 +4,47 @@
|
||||||
|
|
||||||
= javascript_include_tag "validation"
|
= javascript_include_tag "validation"
|
||||||
|
|
||||||
|
= stylesheet_link_tag :mobile
|
||||||
|
|
||||||
|
:css
|
||||||
|
div.navbar.navbar-fixed-top{ display:none;}
|
||||||
|
body{ padding: 10px;}
|
||||||
|
legend{ background-image: url(/assets/header-bg-long.jpg); color: #939393;}
|
||||||
|
|
||||||
.stream
|
.stream
|
||||||
|
- flash.each do |name, msg|
|
||||||
|
%p{:class => "registrations_#{name}"}= msg
|
||||||
#login_form
|
#login_form
|
||||||
.login-container
|
.login-container
|
||||||
= form_for(resource, :as => resource_name, :html => {:class => 'new_user_form'}, :url => registration_path(resource_name), :validate => true) do |f|
|
= form_for(resource, :as => resource_name, :html => {:class => 'new_user_form'}, :url => registration_path(resource_name), :validate => true) do |f|
|
||||||
%fieldset
|
%fieldset
|
||||||
%legend
|
%legend
|
||||||
= t('welcome')
|
= image_tag('branding/header-logo2x.png', :height => 40, :width => 40)
|
||||||
|
= t('aspects.aspect_stream.make_something').upcase
|
||||||
|
|
||||||
.control-group
|
.control-group
|
||||||
= f.label :username, t('username')
|
= f.label :username, t('username').upcase
|
||||||
.controls
|
.controls
|
||||||
= f.text_field :username
|
= f.text_field :username, :placeholder => "jedi_guy"
|
||||||
%span.host_uri
|
|
||||||
= diaspora_id_host
|
|
||||||
|
|
||||||
.control-group
|
.control-group
|
||||||
= f.label :email, t('email')
|
= f.label :email, t('email').upcase
|
||||||
.controls
|
.controls
|
||||||
= f.text_field :email
|
= f.text_field :email, :placeholder => "luke@hoth.net"
|
||||||
|
|
||||||
.control-group
|
.control-group
|
||||||
= f.label :password, t('password')
|
= f.label :password, t('password').upcase
|
||||||
.controls
|
.controls
|
||||||
= f.password_field :password
|
= f.password_field :password, :placeholder => "••••••••"
|
||||||
|
|
||||||
.control-group
|
.control-group
|
||||||
= f.label :password_confirmation, t('password_confirmation')
|
= f.label :password_confirmation, t('password_confirmation').upcase
|
||||||
.controls
|
.controls
|
||||||
= f.password_field :password_confirmation
|
= f.password_field :password_confirmation, :placeholder => "••••••••"
|
||||||
|
|
||||||
.controls
|
.controls
|
||||||
= f.submit t('registrations.new.create_my_account'), :class => 'btn primary'
|
= f.submit t('registrations.new.create_my_account'), :class => 'btn primary'
|
||||||
= link_to t('devise.sessions.new.sign_in'), new_user_session_path()
|
= link_to t('devise.sessions.new.sign_in'), new_user_session_path(), :class => 'btn primary', :style => "float: right;"
|
||||||
|
|
||||||
%footer
|
%footer
|
||||||
= link_to t('layouts.application.toggle'), toggle_mobile_path
|
= link_to t('layouts.application.toggle'), toggle_mobile_path
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue