Add mobile registration site to fix ugly 500
This commit is contained in:
parent
7a2ac9e356
commit
2fcc783787
1 changed files with 40 additions and 0 deletions
40
app/views/registrations/new.mobile.haml
Normal file
40
app/views/registrations/new.mobile.haml
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
||||||
|
-# licensed under the Affero General Public License version 3 or later. See
|
||||||
|
-# the COPYRIGHT file.
|
||||||
|
|
||||||
|
= javascript_include_tag "validation"
|
||||||
|
|
||||||
|
.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
|
||||||
|
= f.label :username, t('username')
|
||||||
|
.centered
|
||||||
|
= f.text_field :username
|
||||||
|
%span.host_uri
|
||||||
|
= "@#{AppConfig[:pod_uri].host}"
|
||||||
|
.row
|
||||||
|
.row
|
||||||
|
= f.label :email, t('email')
|
||||||
|
.centered
|
||||||
|
= f.email_field :email
|
||||||
|
.row
|
||||||
|
.row
|
||||||
|
= f.label :password, t('password')
|
||||||
|
.centered
|
||||||
|
= f.password_field :password
|
||||||
|
.row
|
||||||
|
.row
|
||||||
|
= f.label :password_confirmation, t('password_confirmation')
|
||||||
|
.centered
|
||||||
|
= 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()
|
||||||
|
|
||||||
|
%footer
|
||||||
|
|
||||||
Loading…
Reference in a new issue