diff --git a/public/cgu.pdf b/public/cgu.pdf new file mode 100644 index 0000000000000000000000000000000000000000..727946ae9d557f9384e59da54616f5faf163f07c Binary files /dev/null and b/public/cgu.pdf differ diff --git a/templates/registration/register.html.twig b/templates/registration/register.html.twig index 5cc6016e45782157e9b9d18957fffbb24ab28c47..a9f53db4e471a7d85aa8854de229e3cdf860a5aa 100644 --- a/templates/registration/register.html.twig +++ b/templates/registration/register.html.twig @@ -19,7 +19,16 @@ {{ form_row(registrationForm.plainPassword.first, {'row_attr': {'class' : 'form-group d-flex flex-column m-auto mb-4 col-12 col-sm-10 col-md-9 col-lg-8 col-xl-7 col-xxl-5'}}) }} {{ form_row(registrationForm.plainPassword.second, {'row_attr': {'class' : 'form-group d-flex flex-column m-auto mb-4 col-12 col-sm-10 col-md-9 col-lg-8 col-xl-7 col-xxl-5'}}) }} {{ form_row(registrationForm.captcha, {'row_attr': {'class' : 'form-group d-flex flex-column m-auto mb-5 col-12 col-sm-10 col-md-9 col-lg-8 col-xl-7 col-xxl-5'}}) }} - {{ form_row(registrationForm.acceptGeneralConditions, {'row_attr': {'class' : 'form-group d-flex flex-column m-auto mb-4 col-auto justify-content-center'}, 'label_attr': { 'class' : 'ms-3'}}) }} + {{ form_row( + registrationForm.acceptGeneralConditions, + { + 'row_attr': {'class' : 'form-group d-flex flex-column m-auto mb-4 col-auto justify-content-center'}, + 'label_attr': { 'class' : 'ms-3'}, + 'label': '<a href="' ~ asset('cgu.pdf') ~'">'~'registration.agreeTerms' | trans~'</a>', + 'label_html': true + } + ) + }} {{ form_row(registrationForm.submit, {'row_attr': {'class' : 'form-group d-flex flex-column m-auto mb-5'}}) }} {{ form_end(registrationForm) }} </div> diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig index d583304a967ce38803ad894376a638fea3801857..87405e5b04d36b9795281a203456a1c86645442d 100644 --- a/templates/security/login.html.twig +++ b/templates/security/login.html.twig @@ -47,6 +47,11 @@ class="m-auto"> {{ 'login.forgot_password_link'|trans }} </a> + + <a href="{{asset('cgu.pdf')}}" target="_blank" + class="m-auto"> + {{'login.terms_of_use' | trans}} + </a> <button class="btn btn-primary m-auto mt-4" type="submit"> {{ 'login.log_in'|trans }} diff --git a/translations/messages.en.yaml b/translations/messages.en.yaml index a540f9f12bc8c43b07fdf2eec734684cdffef00f..793243dacc12264d1d783895eb65f4aed31c3341 100644 --- a/translations/messages.en.yaml +++ b/translations/messages.en.yaml @@ -16,6 +16,7 @@ login: account_disabled_feedback: Your user account is disabled. Please click on the link your receive by email to validate your registration. forgot_password_link: I forgot my password log_in: Log in + terms_of_use: Terms of use registration: firstName: First name diff --git a/translations/messages.fr.yaml b/translations/messages.fr.yaml index a8929c25554594cb8c1b9de2340331b9ad531d03..998db0f1a9795d224ed2b039b4a4257713066008 100644 --- a/translations/messages.fr.yaml +++ b/translations/messages.fr.yaml @@ -16,6 +16,7 @@ login: account_disabled_feedback: Le compte utilisateur a été désactivé. Veuillez cliquer sur le lien pour recevoir un courriel de validation forgot_password_link: J'ai oublié mon mot de passe log_in: Se connecter + terms_of_use: Conditions d'utilisation registration: firstName: Prénom