Add mobile registration site to fix ugly 500

This commit is contained in:
Dennis Schubert 2011-10-24 22:50:25 +02:00
parent 7a2ac9e356
commit 2fcc783787

View 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