Use implicit class_names in 2FA partials (#37846)
This commit is contained in:
parent
bfec82e5f9
commit
db64ae368f
@ -1,7 +1,7 @@
|
|||||||
= simple_form_for(resource,
|
= simple_form_for(resource,
|
||||||
as: resource_name,
|
as: resource_name,
|
||||||
url: session_path(resource_name),
|
url: session_path(resource_name),
|
||||||
html: { method: :post, id: 'otp-authentication-form' }.merge(hidden ? { class: 'hidden' } : {})) do |f|
|
html: { method: :post, id: 'otp-authentication-form', class: [hidden:] }) do |f|
|
||||||
%p.hint.authentication-hint= t('simple_form.hints.sessions.otp')
|
%p.hint.authentication-hint= t('simple_form.hints.sessions.otp')
|
||||||
|
|
||||||
.fields-group
|
.fields-group
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
= simple_form_for(resource,
|
= simple_form_for(resource,
|
||||||
as: resource_name,
|
as: resource_name,
|
||||||
url: session_path(resource_name),
|
url: session_path(resource_name),
|
||||||
html: { method: :post, id: 'webauthn-form' }.merge(hidden ? { class: 'hidden' } : {})) do |f|
|
html: { method: :post, id: 'webauthn-form', class: [hidden:] }) do |f|
|
||||||
%h3.title= t('simple_form.title.sessions.webauthn')
|
%h3.title= t('simple_form.title.sessions.webauthn')
|
||||||
%p.hint= t('simple_form.hints.sessions.webauthn')
|
%p.hint= t('simple_form.hints.sessions.webauthn')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user