|
23 | 23 | display: none; |
24 | 24 | } |
25 | 25 |
|
26 | | - a, #enable-other-sign-in, #add-an-email, .resend-confirmation input[type=submit] { |
| 26 | + a, |
| 27 | + #enable-other-sign-in, |
| 28 | + #add-an-email, |
| 29 | + button.editable, |
| 30 | + .resend-confirmation input[type=submit] { |
27 | 31 | color: #027eb5 !important; |
28 | 32 | } |
29 | 33 |
|
|
123 | 127 | I18n.t(:"legacy.users.edit.sign_out"), |
124 | 128 | newflow_logout_path, |
125 | 129 | class: 'sign-out', |
| 130 | + method: :get, |
126 | 131 | data: { |
127 | 132 | 'ga-category': 'Logout', |
128 | 133 | 'ga-action': 'Click', |
|
138 | 143 | <%= I18n.t(:"legacy.users.edit.name") %> |
139 | 144 | </div> |
140 | 145 | <div class="col-sm-10 info"> |
141 | | - <button href="#" id="name" class="editable" data-type="profile_name"><%= current_user.full_name %></button> |
| 146 | + <button type="button" id="name" |
| 147 | + class="editable" |
| 148 | + data-type="profile_name" |
| 149 | + > |
| 150 | + <span class="text-content"><%= current_user.full_name %></span> |
| 151 | + <span class="glyphicon glyphicon-pencil" aria-label="edit name"></span> |
| 152 | + </button> |
142 | 153 | </div> |
143 | 154 | </div> |
144 | 155 |
|
|
196 | 207 | <%= newflow_way_to_login(provider: provider, has_authentication: true, current_providers: current_providers) %> |
197 | 208 | <% end %> |
198 | 209 | </div> |
199 | | - <% if other_available_providers.any? %> |
200 | | - <div class="col-sm-offset-2 info col-sm-10"> |
201 | | - <button id="enable-other-sign-in"><%= I18n.t(:"student_profile.enable_other_sign_in_options") %></button> |
202 | | - </div> |
203 | | - <% end %> |
204 | | - |
205 | 210 | </div> |
206 | 211 |
|
207 | | - <div class="row other-sign-in"> |
208 | | - <div class="col-sm-2 category"> |
209 | | - <%= I18n.t(:"student_profile.other_sign_in_options_html").html_safe %> |
210 | | - </div> |
211 | | - <div class="col-sm-10 info providers"> |
212 | | - <% other_available_providers.each do |provider| %> |
213 | | - <%= |
214 | | - newflow_way_to_login( |
215 | | - provider: provider, |
216 | | - has_authentication: false, |
217 | | - current_providers: current_providers |
218 | | - ) |
219 | | - %> |
220 | | - <% end %> |
| 212 | + <% if other_available_providers.any? %> |
| 213 | + <div class="row other-sign-in"> |
| 214 | + <details class="col-sm-10 col-sm-offset-2 info providers"> |
| 215 | + <summary><%= I18n.t(:"student_profile.enable_other_sign_in_options") %></summary> |
| 216 | + <div class="controls"> |
| 217 | + <% other_available_providers.each do |provider| %> |
| 218 | + <%= |
| 219 | + newflow_way_to_login( |
| 220 | + provider: provider, |
| 221 | + has_authentication: false, |
| 222 | + current_providers: current_providers |
| 223 | + ) |
| 224 | + %> |
| 225 | + <% end %> |
| 226 | + <div> |
| 227 | + </details> |
221 | 228 | </div> |
222 | | - </div> |
| 229 | + <% end %> |
223 | 230 |
|
224 | 231 | <hr> |
225 | 232 | <div class="row"> |
|
0 commit comments