diaspora/app/views/registrations/new.mobile.haml

40 lines
1.2 KiB
Text

-# 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
= diaspora_id_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