From: Andy Allan Date: Thu, 28 Jan 2021 10:10:03 +0000 (+0000) Subject: Use boolean instead of string for hiding labels X-Git-Tag: live~2619^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/1f4d334dfe9d189227f1b1102304b5f20e9187c9 Use boolean instead of string for hiding labels --- diff --git a/app/views/users/account.html.erb b/app/views/users/account.html.erb index 4562033a2..83ba127ca 100644 --- a/app/views/users/account.html.erb +++ b/app/views/users/account.html.erb @@ -21,7 +21,7 @@
- <%= 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" }) %> <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }) %>
(" target="_new"><%= t ".openid.link text" %>) diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 7f640c708..264fc8e02 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -26,7 +26,7 @@
- <%= f.select(:auth_provider, Auth.providers, :default => "", :hide_label => "true", :wrapper => { :class => "col-auto mb-0" }, :tabindex => 4) %> + <%= f.select(:auth_provider, Auth.providers, :default => "", :hide_label => true, :wrapper => { :class => "col-auto mb-0" }, :tabindex => 4) %> <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }, :tabindex => 5) %>
<%= t ".auth no password" %>