From 1f4d334dfe9d189227f1b1102304b5f20e9187c9 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Thu, 28 Jan 2021 10:10:03 +0000 Subject: [PATCH] Use boolean instead of string for hiding labels --- app/views/users/account.html.erb | 2 +- app/views/users/new.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" %> -- 2.43.2