<p></p>
<p><b>@gravitystorm</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3074#discussion_r565971842">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>I've added better descriptive labels in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/3cabed98b3c39a9b9a97fcfa9c6c3aa279a0905d/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/3cabed98b3c39a9b9a97fcfa9c6c3aa279a0905d"><tt>3cabed9</tt></a> (although auth_uid is still quite a technical concept, and I'm not even sure it's clear what the box is for in non-sr situations, but that's not a focus of this refactoring).</p>
<p>The <code>:hide_label</code> feature of bootstrap_form does exactly what you suggest - the label is still in the html tree, just marked with the sr-only class, but otherwise there and linked to the relevant input field <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></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#discussion_r565971842">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIYZDSTTRDAZHF767TS4E2H5ANCNFSM4WVWFPAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLLOZJJ2T4ZS44BU2GDS4E2H5A5CNFSM4WVWFPAKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEJ3EFUI.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#discussion_r565971842",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3074#discussion_r565971842",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>