mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-19 02:46:22 +00:00
feat: pedir consentimiento #12795
This commit is contained in:
parent
3e6288fefe
commit
fd109d79c3
3 changed files with 53 additions and 0 deletions
|
@ -39,6 +39,22 @@
|
|||
min: @minimum_password_length,
|
||||
aria: { describedby: 'minimum-password-length' },
|
||||
placeholder: t("#{password}_confirmation")
|
||||
|
||||
- if params[:consent]
|
||||
.form-group
|
||||
- %i[privacy_policy_accepted terms_of_service_accepted code_of_conduct_accepted available_for_feedback_accepted].each do |field|
|
||||
- required = t(".#{field}.required", default: '').present?
|
||||
- id = "usuarie_#{field}"
|
||||
- name = "usuarie[#{field}]"
|
||||
- content = t(".#{field}.label")
|
||||
= render 'bootstrap/custom_checkbox', id: id, name: name, content: content, required: required do
|
||||
- href = t(".#{field}.href", default: '')
|
||||
- help = t(".#{field}.help")
|
||||
- if href.present?
|
||||
= link_to help, href, target: '_blank', rel: 'noopener'
|
||||
- else
|
||||
= help
|
||||
|
||||
.actions
|
||||
= f.submit t('.sign_up'),
|
||||
class: 'btn btn-lg btn-block'
|
||||
|
|
|
@ -104,6 +104,25 @@ en:
|
|||
new:
|
||||
sign_up: Sign up
|
||||
help: We only ask for an e-mail address and a password. The password is safely stored, no one else besides you knows it! You'll also receive an e-mail to confirm your account.
|
||||
privacy_policy_accepted:
|
||||
label: "I know about Sutty's privacy policy"
|
||||
help: "Read privacy policy"
|
||||
href: "https://sutty.nl/en/privacy-policy/"
|
||||
required: true
|
||||
terms_of_service_accepted:
|
||||
label: "My sites won't promote hate towards minorities"
|
||||
help: "Read terms of service"
|
||||
href: "https://sutty.nl/en/terms-of-service/"
|
||||
required: true
|
||||
code_of_conduct_accepted:
|
||||
label: "My sites are inclusive spaces"
|
||||
help: "Read codes for sharing"
|
||||
href: "https://sutty.nl/en/code-of-conduct/"
|
||||
required: true
|
||||
available_for_feedback_accepted:
|
||||
label: "I'm available to provide feedback"
|
||||
help: "We may contact you occasionaly"
|
||||
required: false
|
||||
signed_up: Welcome! You have signed up successfully.
|
||||
signed_up_but_inactive: You have signed up successfully. However, we could not sign you in because your account is not yet activated.
|
||||
signed_up_but_locked: You have signed up successfully. However, we could not sign you in because your account is locked.
|
||||
|
|
|
@ -104,6 +104,24 @@ es:
|
|||
new:
|
||||
sign_up: Registrarme
|
||||
help: Para registrarte solo pedimos una dirección de correo y una contraseña. La contraseña se almacena de forma segura, ¡nadie más que vos la sabe! Recibirás un correo de confirmación de cuenta.
|
||||
privacy_policy_accepted:
|
||||
label: "Conozco la política de privacidad de Sutty"
|
||||
help: "Leer política de privacidad"
|
||||
href: "https://sutty.nl/politica-de-privacidad/"
|
||||
required: "true"
|
||||
terms_of_service_accepted:
|
||||
label: "Mis sitios no promueven el odio a minorías"
|
||||
help: "Leer términos de servicio"
|
||||
href: "https://sutty.nl/terminos-de-servicio/"
|
||||
required: "true"
|
||||
code_of_conduct_accepted:
|
||||
label: "Mis sitios son espacios inclusivos"
|
||||
help: "Leer códigos para compartir"
|
||||
href: "https://sutty.nl/codigo-de-convivencia/"
|
||||
required: "true"
|
||||
available_for_feedback_accepted:
|
||||
label: "Estoy disponible para ofrecer retroalimentación"
|
||||
help: "Te contactaremos ocasionalmente"
|
||||
signed_up: Bienvenide. Tu cuenta fue creada.
|
||||
signed_up_but_inactive: Tu cuenta ha sido creada correctamente. Sin embargo, no hemos podido iniciar la sesión porque tu cuenta aún no está activada.
|
||||
signed_up_but_locked: Tu cuenta ha sido creada correctamente. Sin embargo, no hemos podido iniciar la sesión porque que tu cuenta está bloqueada.
|
||||
|
|
Loading…
Reference in a new issue