|
1 | 1 | .container
|
2 |
| - %h3 User Settings |
| 2 | + %h3= t(".title") |
3 | 3 | %hr/
|
4 | 4 |
|
5 | 5 | .mb-3
|
6 | 6 | = render "devise/shared/error_messages", resource: resource
|
7 | 7 |
|
8 | 8 | %ul.nav.nav-tabs.mb-3{role: "tablist"}
|
9 | 9 | %li.nav-item
|
10 |
| - %a#edit-profile-tab.nav-link.active{"aria-controls" => "edit-profile", "aria-selected" => "true", "data-toggle" => "tab", href: "#edit-profile", role: "tab"} Edit Profile |
| 10 | + %a#edit-profile-tab.nav-link.active{"aria-controls" => "edit-profile", "aria-selected" => "true", "data-toggle" => "tab", href: "#edit-profile", role: "tab"}= t(".profile.title") |
11 | 11 | %li.nav-item
|
12 |
| - %a#change-email-tab.nav-link{"aria-controls" => "change-email", "aria-selected" => "false", "data-toggle" => "tab", href: "#change-email", role: "tab"} Change Email |
| 12 | + %a#change-email-tab.nav-link{"aria-controls" => "change-email", "aria-selected" => "false", "data-toggle" => "tab", href: "#change-email", role: "tab"}= t(".email.title") |
13 | 13 | %li.nav-item
|
14 |
| - %a#change-password-tab.nav-link{"aria-controls" => "change-password", "aria-selected" => "false", "data-toggle" => "tab", href: "#change-password", role: "tab"} Change Password |
| 14 | + %a#change-password-tab.nav-link{"aria-controls" => "change-password", "aria-selected" => "false", "data-toggle" => "tab", href: "#change-password", role: "tab"}= t(".password.title") |
15 | 15 |
|
16 | 16 | .tab-content
|
17 | 17 | #edit-profile.tab-pane.fade.show.active{:"aria-labelledby" => "edit-profile-tab", role: "tabpanel"}
|
18 | 18 | .row
|
19 | 19 | .col.pull-left
|
20 | 20 | = form_for resource, as: resource_name, url: registration_path(resource_name) do |f|
|
21 | 21 | = f.fields_for :profile do |profile|
|
22 |
| - %h6 Gender |
| 22 | + %h6= t(".profile.gender") |
23 | 23 | .form-group
|
24 | 24 | .input-group
|
25 |
| - = profile.text_field :gender, :placeholder => 'Gender', :autocomplete => 'gender', :class => 'form-control' |
| 25 | + = profile.text_field :gender, :placeholder => t(".profile.gender"), :autocomplete => 'gender', :class => 'form-control' |
26 | 26 | %h6
|
27 |
| - Nationality |
| 27 | + = t(".profile.nationality.title") |
28 | 28 | %small
|
29 |
| - (National flag) |
| 29 | + = t(".profile.nationality.small") |
30 | 30 | .field.form-group
|
31 | 31 | = f.country_select :country, {:include_blank => true}, {:class => "form-control"}
|
32 |
| - %h6 Location |
| 32 | + %h6 |
| 33 | + = t(".profile.location") |
33 | 34 | .form-group
|
34 | 35 | .input-group
|
35 |
| - = profile.text_field :location, :placeholder => 'Location', :autocomplete => 'location', :class => 'form-control' |
36 |
| - %h6 Occupation |
| 36 | + = profile.text_field :location, :placeholder => t(".profile.location"), :autocomplete => 'location', :class => 'form-control' |
| 37 | + %h6 |
| 38 | + = t(".profile.occupation") |
37 | 39 | .form-group
|
38 | 40 | .input-group
|
39 |
| - = profile.text_field :occupation, :placeholder => 'Occupation', :autocomplete => 'occupation', :class => 'form-control' |
40 |
| - %h6 Interests |
| 41 | + = profile.text_field :occupation, :placeholder => t(".profile.occupation"), :autocomplete => 'occupation', :class => 'form-control' |
| 42 | + %h6 |
| 43 | + = t(".profile.interests") |
41 | 44 | .form-group
|
42 | 45 | .input-group
|
43 |
| - = profile.text_field :interests, :placeholder => 'Interests', :autocomplete => 'interests', :class => 'form-control' |
44 |
| - %h6 Public Email |
| 46 | + = profile.text_field :interests, :placeholder => t(".profile.interests"), :autocomplete => 'interests', :class => 'form-control' |
| 47 | + %h6 |
| 48 | + = t(".profile.public-email") |
45 | 49 | .form-group
|
46 | 50 | .input-group
|
47 |
| - = profile.text_field :public_email, :placeholder => 'Public Email', :autocomplete => 'public_email', :class => 'form-control' |
| 51 | + = profile.text_field :public_email, :placeholder => t(".profile.public-email"), :autocomplete => 'public_email', :class => 'form-control' |
48 | 52 | %h6 Discord
|
49 | 53 | .form-group
|
50 | 54 | .input-group
|
|
74 | 78 | .input-group-prepend
|
75 | 79 | .input-group-text.devise-form-input-prepend steamcommunity.com/id/
|
76 | 80 | = profile.text_field :steam, :autocomplete => 'steam', :class => 'form-control'
|
77 |
| - %h6 About me... (You may use html) |
| 81 | + %h6 |
| 82 | + = t(".profile.about-me.title") |
78 | 83 | .row
|
79 | 84 | .form-group
|
80 |
| - = profile.text_area :about, :placeholder => 'Write something interesting...', :autocomplete => 'about_me', :class => 'form-control' |
| 85 | + = profile.text_area :about, :placeholder => t(".profile.about-me.placeholder"), :autocomplete => 'about_me', :class => 'form-control' |
81 | 86 | .form-group
|
82 | 87 | .input-group
|
83 |
| - = f.password_field :current_password, :placeholder => 'Current password', :class => 'form-control' |
| 88 | + = f.password_field :current_password, :placeholder => t(".current-password"), :class => 'form-control' |
84 | 89 | .btn-toolbar
|
85 | 90 | .actions
|
86 |
| - = f.submit "Update", :class => 'btn btn-sm' |
| 91 | + = f.submit t(".update"), :class => 'btn btn-sm' |
87 | 92 |
|
88 | 93 | #change-email.tab-pane.fade.show{:"aria-labelledby" => "change-email-tab", role: "tabpanel"}
|
89 | 94 | .row
|
90 | 95 | .col-md-5
|
91 |
| - %h4 Change Email |
| 96 | + %h4 |
| 97 | + = t(".email.title") |
92 | 98 | = form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
93 | 99 | .form-group
|
94 | 100 | .input-group
|
95 |
| - = f.email_field :email, autofocus: true, :placeholder => 'New Email', :class => 'form-control' |
| 101 | + = f.email_field :email, autofocus: true, :placeholder => t(".email.new"), :class => 'form-control' |
96 | 102 | - if devise_mapping.confirmable? && resource.pending_reconfirmation?
|
97 | 103 | .devise-text-pleasant
|
98 | 104 | %i.fa.fa-exclamation-triangle{"aria-hidden" => "true"}
|
99 |
| - Awaiting confirmation for: #{resource.unconfirmed_email} |
| 105 | + = t('.currently_waiting_confirmation_for_email', :email => resource.unconfirmed_email) |
100 | 106 | .form-group
|
101 | 107 | .input-group
|
102 |
| - = f.password_field :current_password, :placeholder => 'Current password', :class => 'form-control' |
| 108 | + = f.password_field :current_password, :placeholder => t(".current-password"), :class => 'form-control' |
103 | 109 | .btn-toolbar
|
104 | 110 | .actions
|
105 |
| - = f.submit "Update", :class => 'btn btn-sm' |
| 111 | + = f.submit t(".update"), :class => 'btn btn-sm' |
106 | 112 |
|
107 | 113 | #change-password.tab-pane.fade.show{:"aria-labelledby" => "change-password-tab", role: "tabpanel"}
|
108 | 114 | .row
|
109 | 115 | .col-md-5
|
110 |
| - %h4 Change password |
| 116 | + %h4 |
| 117 | + = t(".password.title") |
111 | 118 | = form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
112 | 119 | .form-group
|
113 | 120 | .input-group
|
114 | 121 | - if @minimum_password_length
|
115 |
| - = f.password_field :password, autocomplete: "new-password", :placeholder => "New password (#{@minimum_password_length} characters minimum)", :class => 'form-control' |
| 122 | + = f.password_field :password, autocomplete: "new-password", :placeholder => t(".password.new-length", length: @minimum_password_length) , :class => 'form-control' |
116 | 123 | - else
|
117 |
| - = f.password_field :password, autocomplete: "new-password", :placeholder => "New password", :class => 'form-control' |
| 124 | + = f.password_field :password, autocomplete: "new-password", :placeholder => t(".password.new"), :class => 'form-control' |
118 | 125 | .form-group
|
119 | 126 | .input-group
|
120 |
| - = f.password_field :password_confirmation, autocomplete: "new-password", :placeholder => 'Confirm new password', :class => 'form-control' |
| 127 | + = f.password_field :password_confirmation, autocomplete: "new-password", :placeholder => t(".password.confirm"), :class => 'form-control' |
121 | 128 | .form-group
|
122 | 129 | .input-group
|
123 |
| - = f.password_field :current_password, autocomplete: "current-password", :placeholder => 'Current password', :class => 'form-control' |
| 130 | + = f.password_field :current_password, autocomplete: "current-password", :placeholder => t(".current-password"), :class => 'form-control' |
124 | 131 | .btn-toolbar
|
125 | 132 | .actions
|
126 |
| - = f.submit "Update", :class => 'btn btn-sm' |
| 133 | + = f.submit t(".update"), :class => 'btn btn-sm' |
0 commit comments