Add server rules to sign-up flow (#19296)
This commit is contained in:
parent
26f2586b62
commit
679274465b
6 changed files with 101 additions and 30 deletions
20
app/views/auth/registrations/rules.html.haml
Normal file
20
app/views/auth/registrations/rules.html.haml
Normal file
|
@ -0,0 +1,20 @@
|
|||
- content_for :page_title do
|
||||
= t('auth.register')
|
||||
|
||||
- content_for :header_tags do
|
||||
= render partial: 'shared/og', locals: { description: description_for_sign_up }
|
||||
|
||||
.simple_form
|
||||
%h1.title= t('auth.rules.title')
|
||||
%p.lead= t('auth.rules.preamble', domain: site_hostname)
|
||||
|
||||
%ol.rules-list
|
||||
- @rules.each do |rule|
|
||||
%li
|
||||
.rules-list__text= rule.text
|
||||
|
||||
.stacked-actions
|
||||
= link_to t('auth.rules.accept'), new_user_registration_path(accept: @accept_token), class: 'button'
|
||||
= link_to t('auth.rules.back'), root_path, class: 'button button-tertiary'
|
||||
|
||||
.form-footer= render 'auth/shared/links'
|
Loading…
Add table
Add a link
Reference in a new issue