<p></p>
<p><b>@tordans</b> commented on this pull request.</p>
<p>Just two thinks I noticed. Great refactoring.</p><hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3074#discussion_r565531722">app/views/users/account.html.erb</a>:</p>
<pre style='color:#555'>> -
- <div class="standard-form-row">
- <label class="standard-label"><%= t "users.new.confirm password" %></label>
- <%= f.password_field :pass_crypt_confirmation, :value => "", :autocomplete => :off %>
+<%= bootstrap_form_for current_user, :url => { :action => :account }, :method => :post, :html => { :multipart => true, :id => "accountForm", :autocomplete => :off } do |f| %>
+
+ <%= f.text_field :display_name %>
+ <%= f.email_field :email, :disabled => true, :label => t(".current email address") %>
+ <%= f.email_field :new_email, :autocomplete => :off %>
+ <%= f.password_field :pass_crypt, :value => "", :autocomplete => :off %>
+ <%= f.password_field :pass_crypt_confirmation, :value => "", :autocomplete => :off %>
+
+ <fieldset class="form-group">
+ <label for="user_auth_provider"><%= t(".external auth") %></label>
+ <div class="form-row">
+ <%= f.select(:auth_provider, Auth.providers, :hide_label => "true", :wrapper => { :class => "col-auto mb-0" }) %>
</pre>
⬇️ Suggested change
<pre style="color: #555">- <%= f.select(:auth_provider, Auth.providers, :hide_label => "true", :wrapper => { :class => "col-auto mb-0" }) %>
+ <%= f.select(:auth_provider, Auth.providers, :hide_label => true, :wrapper => { :class => "col-auto mb-0" }) %>
</pre>
<p>To keep in sync with one line below.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3074#discussion_r565533249">app/views/users/account.html.erb</a>:</p>
<pre style='color:#555'>> - <div class="standard-form-row">
- <label class="standard-label"><%= t "users.new.confirm password" %></label>
- <%= f.password_field :pass_crypt_confirmation, :value => "", :autocomplete => :off %>
+<%= bootstrap_form_for current_user, :url => { :action => :account }, :method => :post, :html => { :multipart => true, :id => "accountForm", :autocomplete => :off } do |f| %>
+
+ <%= f.text_field :display_name %>
+ <%= f.email_field :email, :disabled => true, :label => t(".current email address") %>
+ <%= f.email_field :new_email, :autocomplete => :off %>
+ <%= f.password_field :pass_crypt, :value => "", :autocomplete => :off %>
+ <%= f.password_field :pass_crypt_confirmation, :value => "", :autocomplete => :off %>
+
+ <fieldset class="form-group">
+ <label for="user_auth_provider"><%= t(".external auth") %></label>
+ <div class="form-row">
+ <%= f.select(:auth_provider, Auth.providers, :hide_label => "true", :wrapper => { :class => "col-auto mb-0" }) %>
+ <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }) %>
</pre>
<p>Optionally: to make it more accessible you could add the sr-only class to the label and a descriptive label text.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3074#pullrequestreview-577629162">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJ2IPB63U4XNDDRGJDS4BLBFANCNFSM4WVWFPAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLMIX65HZX6WC4ZGVO3S4BLBFA5CNFSM4WVWFPAKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEJW6X2Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3074#pullrequestreview-577629162",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3074#pullrequestreview-577629162",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>