More link/button conversion across views (#32199)
This commit is contained in:
parent
1f65a95421
commit
cf859d151b
9 changed files with 17 additions and 17 deletions
|
@ -46,7 +46,7 @@
|
|||
%p.muted-hint= t('exports.archive_takeout.hint_html')
|
||||
|
||||
- if policy(:backup).create?
|
||||
%p= link_to t('exports.archive_takeout.request'), settings_export_path, class: 'button', method: :post
|
||||
%p= button_to t('exports.archive_takeout.request'), settings_export_path, class: :button
|
||||
|
||||
- unless @backups.empty?
|
||||
%hr.spacer/
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
|
||||
%hr.spacer/
|
||||
|
||||
= link_to t('otp_authentication.setup'), settings_otp_authentication_path, data: { method: :post }, class: 'block-button'
|
||||
= button_to t('otp_authentication.setup'), settings_otp_authentication_path, class: 'block-button'
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
= t('settings.two_factor_authentication')
|
||||
|
||||
- content_for :heading_actions do
|
||||
= link_to t('two_factor_authentication.disable'), disable_settings_two_factor_authentication_methods_path, class: 'button button--destructive', method: :post
|
||||
= button_to t('two_factor_authentication.disable'), disable_settings_two_factor_authentication_methods_path, class: 'button button--destructive'
|
||||
|
||||
%p.hint
|
||||
%span.positive-hint
|
||||
|
@ -38,4 +38,4 @@
|
|||
%hr.spacer/
|
||||
|
||||
.simple_form
|
||||
= link_to t('two_factor_authentication.generate_recovery_codes'), settings_two_factor_authentication_recovery_codes_path, data: { method: :post }, class: 'block-button'
|
||||
= button_to t('two_factor_authentication.generate_recovery_codes'), settings_two_factor_authentication_recovery_codes_path, class: 'block-button'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue