Change rule acceptance link to form (#39283)
This commit is contained in:
parent
7cd824a998
commit
24609bf041
@ -4,7 +4,7 @@
|
|||||||
- content_for :header_tags do
|
- content_for :header_tags do
|
||||||
= render partial: 'shared/og', locals: { description: description_for_sign_up(@invite) }
|
= render partial: 'shared/og', locals: { description: description_for_sign_up(@invite) }
|
||||||
|
|
||||||
.simple_form
|
= form_with class: :simple_form, method: :get, url: new_user_registration_path do |form|
|
||||||
= render 'auth/shared/progress', stage: 'rules'
|
= render 'auth/shared/progress', stage: 'rules'
|
||||||
|
|
||||||
- if @invite.present? && @invite.autofollow?
|
- if @invite.present? && @invite.autofollow?
|
||||||
@ -20,6 +20,6 @@
|
|||||||
= render collection: @rule_translations, partial: 'auth/rule_translations/rule_translation'
|
= render collection: @rule_translations, partial: 'auth/rule_translations/rule_translation'
|
||||||
|
|
||||||
.stacked-actions
|
.stacked-actions
|
||||||
- accept_path = @invite_code.present? ? public_invite_url(invite_code: @invite_code, accept: @accept_token) : new_user_registration_path(accept: @accept_token)
|
= form.hidden_field :invite_code, value: @invite_code if @invite_code.present?
|
||||||
= link_to t('auth.rules.accept'), accept_path, class: 'button'
|
= form.button t('auth.rules.accept'), name: :accept, type: :submit, class: :button, value: @accept_token
|
||||||
= link_to t('auth.rules.back'), root_path, class: 'button button-secondary'
|
= link_to t('auth.rules.back'), root_path, class: 'button button-secondary'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user