iugusdk 1.0.0.alpha.7 → 1.0.0.alpha.9
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/stylesheets/iugu-sdk.css.sass +81 -1
- data/app/controllers/iugu/omniauth_callbacks_controller.rb +4 -3
- data/app/controllers/iugu/profile_controller.rb +12 -7
- data/app/controllers/iugu/registrations_controller.rb +9 -1
- data/app/models/user.rb +2 -9
- data/app/views/iugu/confirmations/new.html.haml +28 -9
- data/app/views/iugu/mailer/reset_password_instructions.html.haml +8 -1
- data/app/views/iugu/passwords/edit.html.haml +31 -12
- data/app/views/iugu/passwords/new.html.haml +30 -9
- data/app/views/iugu/registrations/new.html.haml +55 -23
- data/app/views/iugu/sessions/new.html.haml +55 -54
- data/app/views/iugu/settings/profile.html.haml +77 -90
- data/app/views/iugu/shared/{_links.haml → _links.html.haml} +0 -0
- data/app/views/iugu/shared/_notices.html.haml +29 -0
- data/app/views/iugu/shared/_responsive-dialog.header.html.haml +1 -1
- data/app/views/iugu/shared/{_signup_fields.haml → _signup_fields.html.haml} +0 -0
- data/app/views/layouts/iugu-sdk.html.haml +2 -2
- data/app/views/layouts/settings.html.haml +54 -40
- data/config/locales/iugu.en.yml +11 -2
- data/config/locales/iugu.pt-BR.yml +24 -5
- data/config/routes.rb +12 -11
- data/lib/iugusdk.rb +3 -0
- data/lib/iugusdk/valid_tenancy_urls.rb +6 -1
- data/lib/iugusdk/version.rb +1 -1
- data/spec/dummy/app/assets/images/application_logo.png +0 -0
- data/spec/dummy/app/views/iugu/shared/_responsive-dialog.header.html.haml +3 -0
- data/spec/dummy/config/application.rb +1 -0
- data/spec/dummy/config/initializers/iugusdk.rb +5 -0
- data/spec/dummy/log/development.log +131281 -0
- data/spec/dummy/tmp/cache/assets/C48/D00/sprockets%2F4a51b39094a347e3e325005c7847551c +0 -0
- data/spec/dummy/tmp/cache/assets/C49/B90/sprockets%2F652bf28a17cb315610471da568733258 +0 -0
- data/spec/dummy/tmp/cache/assets/C4F/3A0/sprockets%2F41918e8d7b402652a5649e4b7134d620 +0 -0
- data/spec/dummy/tmp/cache/assets/C7A/F30/sprockets%2F70249181577b261a3ea8851b530f1e7c +0 -0
- data/spec/dummy/tmp/cache/assets/CA4/160/sprockets%2F4037c72091060092649afe46072ebbec +0 -0
- data/spec/dummy/tmp/cache/assets/CBB/AA0/sprockets%2F34b613f862555697eb944a2ff6ac3526 +0 -0
- data/spec/dummy/tmp/cache/assets/CC7/EB0/sprockets%2F079d3b368c9e843b78c90079f26d628b +0 -0
- data/spec/dummy/tmp/cache/assets/CCA/850/sprockets%2F1d05d32f046ec7313b0d3619a232d73f +0 -0
- data/spec/dummy/tmp/cache/assets/CDB/E30/sprockets%2F918458a88fec2cd01991c003b2318ab7 +0 -0
- data/spec/dummy/tmp/cache/assets/D08/ED0/sprockets%2Fcb1aee736d3b287a872298b7741b012b +0 -0
- data/spec/dummy/tmp/cache/assets/D18/2F0/sprockets%2Fcc2e1640b5601b34eb61a4c333a2e31b +0 -0
- data/spec/dummy/tmp/cache/assets/D1A/B70/sprockets%2F47ae92dd9d034b32098b19bf8f2475a9 +0 -0
- data/spec/dummy/tmp/cache/assets/D28/030/sprockets%2Fd94bb03644697ba99f0c548d9f732cf9 +0 -0
- data/spec/dummy/tmp/cache/assets/D3F/230/sprockets%2F6d936d416e28b6be0a95c54c24814aec +0 -0
- data/spec/dummy/tmp/cache/assets/D42/230/sprockets%2F6a13b3e67cd9823c208f14e1f62d9cd7 +0 -0
- data/spec/dummy/tmp/cache/assets/D43/040/sprockets%2Fab2e8a0c571ba239149f4655c6f7b4f9 +0 -0
- data/spec/dummy/tmp/cache/assets/D48/370/sprockets%2Fb654fd37f9f63ec202a3636e29b94ef0 +0 -0
- data/spec/dummy/tmp/cache/assets/D4A/1A0/sprockets%2Fb746360a8b3ce79c57e74a9c15309fdd +0 -0
- data/spec/dummy/tmp/cache/assets/D5C/200/sprockets%2Fcd323e6f7545cee0b3ba1e84d7520b00 +0 -0
- data/spec/dummy/tmp/cache/assets/D5E/290/sprockets%2F22fb620af04e31f058ba64ec4386bb8a +0 -0
- data/spec/dummy/tmp/cache/assets/D74/0A0/sprockets%2Fc1392b79af6b88250b634479cbf2bcfc +0 -0
- data/spec/dummy/tmp/cache/assets/D74/FC0/sprockets%2F07eb31b6b73c399fd094d9a8ac4f71c4 +0 -0
- data/spec/dummy/tmp/cache/assets/D7A/E00/sprockets%2F89e01e4f72e5c8df4c900fb6de91526b +0 -0
- data/spec/dummy/tmp/cache/assets/D9E/630/sprockets%2Fde1cf65951bf648974f4daed2bc0a502 +0 -0
- data/spec/dummy/tmp/cache/assets/DC9/630/sprockets%2Fefd128f13bd29fcd332e47b5504ea6cd +0 -0
- data/spec/dummy/tmp/cache/assets/DCA/FD0/sprockets%2F0b59a77adfc61bb863e708ba262ce6bd +0 -0
- data/spec/dummy/tmp/cache/assets/DCB/CA0/sprockets%2Fa9f4cff164613cb2ac9ad5af37d9c170 +0 -0
- data/spec/dummy/tmp/cache/assets/DD7/9B0/sprockets%2F9f2c0826bd7ae7b745ae8da6db48c26e +0 -0
- data/spec/dummy/tmp/cache/assets/DE5/390/sprockets%2F24a1cda6893cebd53997dc859def67cd +0 -0
- data/spec/dummy/tmp/cache/assets/DE5/630/sprockets%2Fb24cac157fa80acfb2e2d75b43b4b33b +0 -0
- data/spec/dummy/tmp/cache/assets/E05/2E0/sprockets%2F92ecbfa92baf6e394ce6c39d731b7cd2 +0 -0
- data/spec/dummy/tmp/cache/assets/E34/EB0/sprockets%2Ff676084fc3c5cd3de4f3f3cc6aa6c3ff +0 -0
- data/spec/dummy/tmp/cache/assets/E4E/EC0/sprockets%2Fddc0184d315cdeb94ba7cc7c7b4ab2db +0 -0
- data/spec/dummy/tmp/cache/assets/E68/4E0/sprockets%2F42e7f6fefaea5bdb264ca6e4db89e62f +0 -0
- metadata +129 -97
- data/app/views/iugu-old/account_settings.html.haml +0 -17
- data/app/views/iugu-old/login.html.haml +0 -28
- data/app/views/iugu-old/mails/confirmation_instructions.html.erb +0 -5
- data/app/views/iugu-old/mails/reset_password_instructions.html.erb +0 -8
- data/app/views/iugu-old/mails/unlock_instructions.html.erb +0 -7
- data/app/views/iugu-old/profile_settings.html.haml +0 -76
- data/app/views/iugu-old/signup.html.haml +0 -36
- data/app/views/iugu/registrations/edit.html.haml +0 -18
@@ -1,19 +1,12 @@
|
|
1
1
|
- content_for :title do I18n.t("iugu.profile_settings") end
|
2
|
-
|
3
|
-
%h3
|
4
|
-
= I18n.t "iugu.profile_settings"
|
5
|
-
- if flash[:group] == :profile_update
|
6
|
-
= flash[:notice]
|
2
|
+
|
7
3
|
|
8
4
|
- if current_user.guest
|
9
5
|
|
10
6
|
= simple_form_for @user, :url => become_user_path, :method => :post do |f|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
- @user.errors.full_messages.each do |msg|
|
15
|
-
%li
|
16
|
-
= msg
|
7
|
+
|
8
|
+
= render partial: "iugu/shared/notices", locals: { group: :profile_update, resource: @user }
|
9
|
+
|
17
10
|
%div
|
18
11
|
= f.label :email
|
19
12
|
= f.email_field :email
|
@@ -31,79 +24,53 @@
|
|
31
24
|
|
32
25
|
- else
|
33
26
|
|
34
|
-
= simple_form_for @user, :url => profile_update_path, :method => :post do |f|
|
35
|
-
- if @user.errors.any?
|
36
|
-
- unless @user.errors.include?(:password)
|
37
|
-
#error_explanation{ :style => "margin-bottom: 15px" }
|
38
|
-
%ul
|
39
|
-
- @user.errors.full_messages.each do |msg|
|
40
|
-
%li
|
41
|
-
= msg
|
27
|
+
= simple_form_for @user, :url => profile_update_path, :method => :post, :html => { :class => "no-bottom-margin" } do |f|
|
42
28
|
|
43
|
-
|
44
|
-
= f.label :name, I18n.t("activerecord.attributes.name")
|
45
|
-
= f.text_field :name
|
29
|
+
// I18n.locale
|
46
30
|
|
47
|
-
|
48
|
-
|
49
|
-
|
31
|
+
- @input_success = ''
|
32
|
+
= render partial: "iugu/shared/notices", locals: { group: :profile_update, resource: @user }
|
33
|
+
|
34
|
+
= f.text_field :name, :placeholder => I18n.t("activerecord.attributes.name"), :class => "full-width string #{@user.errors.include?(:name) ? 'failure':@input_success }"
|
35
|
+
|
36
|
+
= f.email_field :email, :placeholder => "E-mail", :class => "full-width string #{@user.errors.include?(:email) ? 'failure':@input_success }"
|
50
37
|
|
51
38
|
%div
|
52
|
-
|
39
|
+
|
40
|
+
= @user.birthdate
|
41
|
+
|
42
|
+
= f.input :birthdate, :as => :hidden, :input_html => { :"data-selector" => "date", :"data-label" => I18n.t("activerecord.attributes.birthdate") }, :label => false
|
43
|
+
|
53
44
|
|
54
45
|
- if AvailableLanguage.all.count > 1
|
55
46
|
%div
|
56
|
-
= f.input :locale, :collection => AvailableLanguage.all, :label => I18n.t("activerecord.attributes.locale")
|
47
|
+
= f.input :locale, :collection => AvailableLanguage.all, :label => false, :input_html => { :"data-label" => I18n.t("activerecord.attributes.locale"), :"data-selector" => "select" }, :include_blank => false
|
57
48
|
|
58
49
|
%div
|
59
|
-
= f.submit "
|
60
|
-
%br
|
50
|
+
= f.submit I18n.t("iugu.save"), :class => "button default"
|
61
51
|
|
62
|
-
- if IuguSDK::enable_user_api
|
63
|
-
%h3
|
64
|
-
Api Token
|
65
|
-
= @user.token.token
|
66
|
-
%br
|
67
|
-
= link_to "Renew", renew_user_token_path
|
68
|
-
%br
|
69
|
-
%br
|
70
52
|
|
71
53
|
- if IuguSDK::enable_signup_form
|
72
|
-
%div
|
73
|
-
%h3
|
74
|
-
= I18n.t "iugu.change_password"
|
75
54
|
|
76
|
-
|
77
|
-
= flash[:notice]
|
55
|
+
= simple_form_for @user, :url => profile_update_path + "#password", :method => :post do |f|
|
78
56
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
%ul
|
83
|
-
%li
|
84
|
-
= "Password " + @user.errors[:password].first
|
57
|
+
.element-spacing
|
58
|
+
%h3.no-bottom-margin
|
59
|
+
= I18n.t "activerecord.attributes.password"
|
85
60
|
|
86
|
-
%div
|
87
|
-
= f.label :password, I18n.t("activerecord.attributes.password")
|
88
|
-
= f.password_field :password
|
89
|
-
|
90
|
-
%div
|
91
|
-
= f.label :password_confirmation, I18n.t("activerecord.attributes.password_confirmation")
|
92
|
-
= f.password_field :password_confirmation
|
93
61
|
|
94
|
-
%div
|
95
|
-
= f.submit "OK", :id => "new_password_submit"
|
96
62
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
= @user.
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
63
|
+
- @input_success = ''
|
64
|
+
= render partial: "iugu/shared/notices", locals: { group: :password, resource: @user }
|
65
|
+
|
66
|
+
= f.password_field :password, :placeholder => I18n.t("activerecord.attributes.password"), :class => "full-width string #{@user.errors.include?(:password) ? 'failure':@input_success }"
|
67
|
+
|
68
|
+
|
69
|
+
= f.password_field :password_confirmation, :placeholder => I18n.t("activerecord.attributes.password_confirmation"), :class => "full-width string #{@user.errors.include?(:password) ? 'failure':@input_success }"
|
70
|
+
|
71
|
+
= hidden_field_tag "form_group", :password
|
72
|
+
|
73
|
+
= f.submit I18n.t("iugu.save"), :id => "new_password_submit", :class => "button no-bottom-margin"
|
107
74
|
|
108
75
|
- if IuguSDK::enable_social_linking
|
109
76
|
|
@@ -111,31 +78,51 @@
|
|
111
78
|
%h3
|
112
79
|
= I18n.t "iugu.social_account"
|
113
80
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
81
|
+
= render partial: "iugu/shared/notices", locals: { group: :social }
|
82
|
+
.element-spacing
|
83
|
+
.social
|
84
|
+
|
85
|
+
%table
|
86
|
+
- SOCIAL_ACCOUNTS.keys.each do |provider|
|
87
|
+
%tr
|
88
|
+
%td
|
89
|
+
%span
|
90
|
+
= provider.capitalize
|
91
|
+
%td
|
92
|
+
- social_account = @social_accounts.where(:provider => provider).first
|
93
|
+
- unless social_account
|
94
|
+
%a.button.default.no-bottom-margin{ :href => user_omniauth_authorize_path(provider) + "?origin=#{profile_settings_path}"}
|
95
|
+
= I18n.t "iugu.link_social"
|
96
|
+
- else
|
97
|
+
= link_to I18n.t("iugu.unlink_social"), social_destroy_path(:id => social_account.id) + "#social", :class => "button warning no-bottom-margin"
|
119
98
|
|
120
|
-
- @social_accounts.each do |social_account|
|
121
99
|
|
100
|
+
- if IuguSDK::enable_user_api
|
101
|
+
%h3
|
102
|
+
= I18n.t("iugu.api_access")
|
103
|
+
= render partial: "iugu/shared/notices", locals: { group: :api }
|
104
|
+
.container
|
105
|
+
%div{ :style => 'text-align:center' }
|
106
|
+
= @user.token.token
|
107
|
+
= link_to I18n.t("iugu.api_renew"), renew_user_token_path + "#api", :class => "button no-bottom-margin"
|
108
|
+
|
109
|
+
%hr
|
110
|
+
.container.no-bottom-margin{ :style => "background-color:#FFF5F5" }
|
111
|
+
= render partial: "iugu/shared/notices", locals: { group: :remove_user }
|
112
|
+
- if @user.destroying?
|
113
|
+
.element-spacing
|
114
|
+
= I18n.t("iugu.user_destruction_in")
|
122
115
|
%div
|
123
|
-
|
124
|
-
|
125
|
-
= social_account.social_id
|
126
|
-
= link_to "Remove", social_destroy_path(:id => social_account.id)
|
127
|
-
|
128
|
-
- SOCIAL_ACCOUNTS.keys.each do |provider|
|
129
|
-
|
130
|
-
- unless @social_accounts.where(:provider => provider).first
|
131
|
-
%div
|
132
|
-
= link_to "#{I18n.t('iugu.sign_in_with')} #{provider.capitalize}", "/account/auth/#{provider}?origin=#{profile_settings_path}"
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
116
|
+
%strong
|
117
|
+
= I18n.l( @user.destruction_job.run_at, :format => :default )
|
140
118
|
|
119
|
+
- unless @user.destruction_job.locked_at
|
120
|
+
= link_to I18n.t("iugu.undo"), profile_cancel_destruction_path + "#remove_user", :confirm => I18n.t("iugu.are_you_sure?"), :class => "button warning no-bottom-margin"
|
141
121
|
|
122
|
+
- else
|
123
|
+
%h3
|
124
|
+
= I18n.t("iugu.remove_user")
|
125
|
+
%p
|
126
|
+
= I18n.t("iugu.remove_user_warning")
|
127
|
+
- if IuguSDK::enable_user_cancel
|
128
|
+
= link_to I18n.t("iugu.remove_user"), profile_destroy_path + "#remove_user", :confirm => I18n.t("iugu.are_you_sure?"), :class => "button warning no-bottom-margin"
|
File without changes
|
@@ -0,0 +1,29 @@
|
|
1
|
+
%div{ :style => "position:relative;height:1px;width:1px;display:inline"}
|
2
|
+
%a{ name: group, :style => "display: block; position: absolute; top: -80px; width: 2px; height: 2px" }
|
3
|
+
- if flash[:group] == group
|
4
|
+
|
5
|
+
- [:notice, :warning, :error, :info].each do |flash_type|
|
6
|
+
- color = nil
|
7
|
+
- color = "green" if flash_type == :notice
|
8
|
+
- color = "red" if flash_type == :error
|
9
|
+
- color = "blue" if flash_type == :info
|
10
|
+
|
11
|
+
- if flash[flash_type]
|
12
|
+
%div{ class: (color ? "notice notice-#{color}" : "notice") }
|
13
|
+
%button.close{ :'data-dismiss' => "notice" }
|
14
|
+
×
|
15
|
+
%h4.notice-heading
|
16
|
+
= flash[flash_type]
|
17
|
+
|
18
|
+
- resource = nil unless resource
|
19
|
+
- if resource && resource.errors.any?
|
20
|
+
.notice.notice-red
|
21
|
+
%h4.notice-heading
|
22
|
+
= I18n.t "simple_form.error_notification.default_message"
|
23
|
+
|
24
|
+
- if resource.errors.any?
|
25
|
+
%ul
|
26
|
+
- resource.errors.full_messages.each do |msg|
|
27
|
+
%li
|
28
|
+
= msg
|
29
|
+
|
File without changes
|
@@ -2,11 +2,11 @@
|
|
2
2
|
%html{ :class => "no-js not-ready" }
|
3
3
|
%head
|
4
4
|
%title= content_for?(:title) ? yield(:title) : IuguSDK::application_title
|
5
|
+
= stylesheet_link_tag "iugu-ux"
|
6
|
+
= stylesheet_link_tag "iugu-sdk.css"
|
5
7
|
= javascript_include_tag :vendor
|
6
8
|
= javascript_include_tag 'jquery_ujs'
|
7
9
|
= javascript_include_tag "iugu-ux"
|
8
|
-
= stylesheet_link_tag "iugu-ux"
|
9
|
-
= stylesheet_link_tag "iugu-sdk.css"
|
10
10
|
|
11
11
|
%meta{ 'http-equiv' => "Content-Type", 'content' => "text/html; charset=UTF-8" }
|
12
12
|
%meta{ 'http-equiv' => "cleartype", 'content' => "on" }
|
@@ -1,46 +1,60 @@
|
|
1
1
|
!!! 5
|
2
|
-
:
|
3
|
-
<!--[if IE 8 ]><html class="ie8 ie"> <![endif]-->
|
4
|
-
<!--[if (gte IE 9)]><html class="ie9 ie"> <![endif]-->
|
5
|
-
<!--[if !(IE)]><!--><html><!--<![endif]-->
|
6
|
-
%html{:lang => "en"}
|
2
|
+
%html{ :class => "no-js not-ready" }
|
7
3
|
%head
|
8
|
-
%meta{:charset => "utf-8"}/
|
9
4
|
%title= content_for?(:title) ? (yield(:title) + " - " + IuguSDK::application_title) : I18n.t("iugu.settings")
|
10
|
-
=
|
11
|
-
|
12
|
-
=
|
13
|
-
= javascript_include_tag
|
14
|
-
|
15
|
-
%body{ :class => body_classes.join(' ') + ' settings iugu-ui' }
|
16
|
-
|
17
|
-
|
18
|
-
.header
|
19
|
-
= link_to image_tag('application_logo.png'), IuguSDK::app_main_url
|
20
|
-
|
21
|
-
= link_to I18n.t("iugu.back_to") + ' ' + IuguSDK::application_title, IuguSDK::app_main_url, :class => "button", :id => "btn-settings-back"
|
22
|
-
|
23
|
-
|
24
|
-
.container
|
25
|
-
.wrapper
|
26
|
-
|
27
|
-
%h1
|
28
|
-
= I18n.t("iugu.settings")
|
29
|
-
- unless flash[:social] || flash[:group]
|
30
|
-
- flash.each do |name, msg|
|
31
|
-
= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String)
|
32
|
-
|
33
|
-
|
34
|
-
= link_to I18n.t("iugu.profile"), profile_settings_path
|
35
|
-
= ' | '
|
36
|
-
- if IuguSDK::enable_multiple_accounts == false && current_user.accounts.count <= 1
|
37
|
-
= link_to I18n.t("iugu.account"), account_view_path
|
38
|
-
- else
|
39
|
-
= link_to I18n.t("iugu.accounts"), account_settings_path
|
40
|
-
|
41
|
-
= yield()
|
5
|
+
= stylesheet_link_tag "iugu-ux"
|
6
|
+
= stylesheet_link_tag "iugu-sdk.css"
|
7
|
+
= javascript_include_tag :vendor
|
8
|
+
= javascript_include_tag 'jquery_ujs'
|
9
|
+
= javascript_include_tag "iugu-ux"
|
42
10
|
|
11
|
+
%meta{ 'http-equiv' => "Content-Type", 'content' => "text/html; charset=UTF-8" }
|
12
|
+
%meta{ 'http-equiv' => "cleartype", 'content' => "on" }
|
13
|
+
%meta{ 'http-equiv' => "X-UA-Compatible", 'content' => "IE=edge,chrome=1" }
|
43
14
|
|
15
|
+
= csrf_meta_tags
|
16
|
+
%link{:href => "/favicon.ico", :rel => "shortcut icon"}/
|
17
|
+
|
18
|
+
-# HTML 5 support for Internet Explorer
|
19
|
+
:plain
|
20
|
+
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
21
|
+
|
22
|
+
-# Mobile capabilities
|
23
|
+
%meta{ name:"HandheldFriendly", content:"True" }
|
24
|
+
%meta{ name:"MobileOptimized", content:320 }
|
25
|
+
%meta{ name:"format-detection", content:"telephone=no" }
|
26
|
+
%meta{ name:"viewport", content:"width=device-width, initial-scale=1, maximum-scale=1" }
|
27
|
+
%meta{ name:"apple-mobile-web-app-capable", :content => "yes" }
|
28
|
+
|
29
|
+
|
30
|
+
%body.iugu-ui.application-background.settings
|
31
|
+
|
32
|
+
.wrapper
|
33
|
+
.header
|
34
|
+
= link_to image_tag('application_logo.png'), IuguSDK::app_main_url
|
35
|
+
|
36
|
+
= link_to I18n.t("iugu.back_to") + ' ' + IuguSDK::application_title, IuguSDK::app_main_url, :class => "button", :id => "btn-settings-back"
|
37
|
+
|
38
|
+
.tabbed
|
39
|
+
%ul.nav
|
40
|
+
%li{ :class => "#{controller_name=='profile'?'active':''}" }
|
41
|
+
%a{ :href => profile_settings_path }
|
42
|
+
= I18n.t "iugu.profile"
|
43
|
+
%li{ :class => "#{controller_name=='profile'?'':'active'}" }
|
44
|
+
- if IuguSDK::enable_multiple_accounts == false && current_user.accounts.count <= 1
|
45
|
+
= link_to I18n.t("iugu.account"), account_view_path
|
46
|
+
- else
|
47
|
+
= link_to I18n.t("iugu.accounts"), account_settings_path
|
48
|
+
.container.no-bottom-margin
|
49
|
+
|
50
|
+
- unless flash[:social] || flash[:group]
|
51
|
+
- flash.each do |name, msg|
|
52
|
+
- if msg.is_a? String
|
53
|
+
.notice.notice-red{ :class => name }
|
54
|
+
%button.close{ :'data-dismiss' => "notice" }
|
55
|
+
×
|
56
|
+
%h4.notice-heading
|
57
|
+
= msg
|
58
|
+
|
59
|
+
= yield
|
44
60
|
|
45
|
-
:plain
|
46
|
-
</html>
|
data/config/locales/iugu.en.yml
CHANGED
@@ -12,8 +12,15 @@ en:
|
|
12
12
|
update: "Update"
|
13
13
|
unhappy?: "Unhappy?"
|
14
14
|
try_first: "Try first"
|
15
|
+
skip_and_save_later: "... or save your account later, and"
|
16
|
+
skip_and_save_later_action: " skip this step ▸"
|
17
|
+
or_sign_up_with: "or sign in using"
|
18
|
+
already_have_account: "Already have an account?"
|
19
|
+
already_have_account_action: "Sign in"
|
15
20
|
generate_new_token: "Generate new token"
|
16
21
|
create_account: "Create Account"
|
22
|
+
no_account: "No account?"
|
23
|
+
no_account_action: "Sign up"
|
17
24
|
add: "Add"
|
18
25
|
active: "Active"
|
19
26
|
unnamed: "Unnamed"
|
@@ -33,6 +40,7 @@ en:
|
|
33
40
|
accounts: "Accounts"
|
34
41
|
account_domains: "Account Domains"
|
35
42
|
social_unlinked: "Social Account successfully unlink"
|
43
|
+
social_linked: "Social Account successfully linked"
|
36
44
|
account_destruction_in: "Account will be remove at "
|
37
45
|
account_destruction_undone: "Account destruction canceled"
|
38
46
|
account_user_destruction_undone: "Account user destruction canceled"
|
@@ -78,8 +86,9 @@ en:
|
|
78
86
|
verify_later: "Verify later"
|
79
87
|
instructions: "Instructions"
|
80
88
|
resend_confirmation_instructions: "Resend confirmation instructions"
|
89
|
+
resend_confirmation_instructions_action: "Resend confirmation mail"
|
81
90
|
confirm_email_through_link_below: "You can confirm your account email through the link below"
|
82
|
-
send_me_reset_password_instructions: "
|
91
|
+
send_me_reset_password_instructions: "Recover my password"
|
83
92
|
leave_it_blank_if_dont_wanna_change_it: "leave it blank if you don't want to change it"
|
84
93
|
we_need_your_current_password_to_confirm_changes: "we need your current password to confirm your changes"
|
85
94
|
did_not_receive_confirmation_instructions?: "Didn't receive confirmation instructions?"
|
@@ -121,6 +130,6 @@ en:
|
|
121
130
|
password_confirmation: "Password confirmation"
|
122
131
|
name: "Name"
|
123
132
|
birthdate: "Birthdate"
|
124
|
-
locale: "
|
133
|
+
locale: "Language"
|
125
134
|
remember_me: "Remember me"
|
126
135
|
|
@@ -12,7 +12,11 @@ pt-BR:
|
|
12
12
|
update: "Atualizar"
|
13
13
|
unhappy?: "Infeliz?"
|
14
14
|
try_first: "Testar Primeiro"
|
15
|
+
skip_and_save_later: "... ou faça seu cadastro depois e"
|
16
|
+
skip_and_save_later_action: " pule este passo ▸"
|
15
17
|
or_sign_up_with: "ou entre com"
|
18
|
+
already_have_account: "Já tem uma conta?"
|
19
|
+
already_have_account_action: "Entrar"
|
16
20
|
generate_new_token: "Gerar novo token"
|
17
21
|
create_account: "Criar Conta"
|
18
22
|
no_account: "Não possue conta?"
|
@@ -36,6 +40,7 @@ pt-BR:
|
|
36
40
|
accounts: "Contas"
|
37
41
|
account_domains: "Domínios"
|
38
42
|
social_unlinked: "Rede social desvinculada com sucesso"
|
43
|
+
social_linked: "Rede social vinculada com sucesso"
|
39
44
|
account_destruction_in: "A conta será removida em "
|
40
45
|
account_destruction_undone: "Remoção da conta cancelada"
|
41
46
|
account_user_destruction_undone: "Remoção do usuário da conta cancelada"
|
@@ -47,6 +52,7 @@ pt-BR:
|
|
47
52
|
are_you_sure?: "Tem certeza disso?"
|
48
53
|
remove: "Excluir"
|
49
54
|
remove_user: "Remover Usuário"
|
55
|
+
remove_user_warning: "Tenha cuidado ao remover seu usuário. Esta operação pode ser irreversível."
|
50
56
|
cancel_account: "Cancelar conta"
|
51
57
|
cancel_my_account: "Cancelar minha conta"
|
52
58
|
removing: "Excluindo..."
|
@@ -57,7 +63,9 @@ pt-BR:
|
|
57
63
|
sign_out: "Deslogar"
|
58
64
|
sign_in: "Entrar"
|
59
65
|
sign_in_with: "Entrar com"
|
60
|
-
|
66
|
+
link_social: "Ativar"
|
67
|
+
unlink_social: "Desconectar"
|
68
|
+
sign_up: "Criar uma conta"
|
61
69
|
profile: "Perfil"
|
62
70
|
profile_settings: "Configurações de Perfil"
|
63
71
|
account_settings: "Configurações de conta"
|
@@ -80,9 +88,10 @@ pt-BR:
|
|
80
88
|
verify_domain: "Verificar Dominio"
|
81
89
|
verify_later: "Verificar depois"
|
82
90
|
instructions: "Instruções"
|
83
|
-
resend_confirmation_instructions: "Instruções para
|
91
|
+
resend_confirmation_instructions: "Instruções para confirmação"
|
92
|
+
resend_confirmation_instructions_action: "Re-enviar email de confirmação"
|
84
93
|
confirm_email_through_link_below: "Você pode confirmar o email da sua conta no link abaixo"
|
85
|
-
send_me_reset_password_instructions: "
|
94
|
+
send_me_reset_password_instructions: "Recuperar minha senha"
|
86
95
|
leave_it_blank_if_dont_wanna_change_it: "Deixa em branco se não quiser alterar"
|
87
96
|
we_need_your_current_password_to_confirm_changes: "Nos precisamos da sua senha atual para confirmar as mudanças"
|
88
97
|
did_not_receive_confirmation_instructions?: "Não recebeu as instruções para confirmação?"
|
@@ -90,6 +99,8 @@ pt-BR:
|
|
90
99
|
custom_domains: "Dominios customizados"
|
91
100
|
api_tokens: "Tokens da api"
|
92
101
|
api_type: "Tipo de api"
|
102
|
+
api_access: "Acesso via API"
|
103
|
+
api_renew: "Renovar Token de Acesso"
|
93
104
|
description: "Descrição"
|
94
105
|
i_dont_have_any_accounts: "Eu não tenho nenhuma conta"
|
95
106
|
owner: "dono"
|
@@ -124,6 +135,14 @@ pt-BR:
|
|
124
135
|
password_confirmation: "Confirmação de senha"
|
125
136
|
name: "Nome"
|
126
137
|
birthdate: "Data de nascimento"
|
127
|
-
locale: "
|
138
|
+
locale: "Idioma"
|
128
139
|
remember_me: "Lembre-me"
|
129
|
-
|
140
|
+
|
141
|
+
simple_form:
|
142
|
+
"yes": "Sim"
|
143
|
+
"no": "Não"
|
144
|
+
required:
|
145
|
+
text: "obrigatório"
|
146
|
+
mark: "*"
|
147
|
+
error_notification:
|
148
|
+
default_message: "Alguns erros foram encontrados:"
|