forked from redbooth/teambox
/
_new.haml
56 lines (51 loc) · 1.94 KB
/
_new.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
- if @invitation_token
= hidden_field_tag 'invitation', @invitation_token
.first_name.text_field
= f.label :first_name, t('users.form.first_name')
= f.text_field :first_name, :autofocus => 'autofocus'
= errors_for user, :first_name
.last_name.text_field
= f.label :last_name, t('users.form.last_name')
= f.text_field :last_name
= errors_for user, :last_name
.email.text_field
= f.label :email, t('users.form.email')
- if (@invitation || @app_link)
= f.text_field :email, :readonly => 'readonly', :style => 'color: #999'
- else
= f.text_field :email
= errors_for user, :email
- if @invitation
.use_this_email{ :style => 'margin: 10px; padding: 10px; border: 1px rgb(220,220,150) solid; background-color: rgb(255,255,200)' }
= t('.use_this_email')
.language.select
= f.label :locale, t('users.form.language')
= f.select :locale, locale_select_values
.time_zone.select
= f.label :time_zone, t('users.form.time_zone')
= f.time_zone_select :time_zone, ActiveSupport::TimeZone.us_zones, :default => "Eastern Time (US & Canada)"
%fieldset.account
%legend= t('.account.title')
%p
= t('.account.choose_username')
%br
= t('.account.validations')
.login.text_field
= f.label :login, t('users.form.login')
= f.text_field :login
= errors_for user, :login
.password.text_field
= f.label :password, t('users.form.password')
= f.password_field :password, :autocomplete => 'off'
= errors_for user, :password
.password.text_field
= f.label :password_confirmation, t('users.form.confirm_password')
= f.password_field :password_confirmation, :autocomplete => 'off'
= errors_for user, :password_confirmation
- build_user_phone_number(user)
= f.fields_for :card do |card|
= card.fields_for :phone_numbers do |phone|
.phone_number.text_field
= phone.label :name, t('users.form.phone')
= phone.text_field :name
.field_note= t('users.form.phone_for_integration')