From 7a060d673074a653fdb095a705a5df76d3c46815 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 15 Sep 2023 08:25:57 +0100 Subject: [PATCH] Bug 31503: (follow-up) Styling and pre-selection Content-Type: text/plain; charset=utf-8 This patch restores some of the wording and styling from the original GDPR/Privacy policy feature including highlighting in a warning box. I also remove the jQuery approach for pre-selecting already selected radio options and rely on standard TT processing instead. Signed-off-by: Martin Renvoize --- .../en/modules/opac-patron-consent.tt | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt index af7644d784..e037918902 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt @@ -40,14 +40,15 @@

Your consents

-
[% FOREACH consent IN consents %] [% SET consent_type = consent.type %] [% IF consent_type == 'GDPR_PROCESSING' %]

Privacy policy consent

-

Please read the privacy policy.

-

In order to keep you logged in, we need your consent to process personal data as specified in the EU General Data Protection Regulation of May 25, 2018. If you would not agree, we will need to remove your account within a reasonable time.

-

Do you agree with our processing of your personal data as outlined in the policy?

+
+

In order to keep you logged in, we need your consent to process personal data as specified in the privacy policy linked below.

+

If you choose to withdraw your consent we will remove your account within a reasonable time and you should log out now.

+
+

I have read the privacy policy and agree with your processing of my personal data as outlined therein.

[% ELSIF consent_types.$consent_type %] [% SET consent_title = ( consent_types.$consent_type.title.$lang || consent_types.$consent_type.title.en ) %] [% SET consent_desc = ( consent_types.$consent_type.description.$lang || consent_types.$consent_type.description.en ) %] @@ -59,15 +60,22 @@

Do you agree?

[% END %]
- Yes
- No + [% IF consent.given_on %] + Yes
+ No + [% ELSIF consent.refused_on %] + Yes
+ No + [% ELSE %] + Yes
+ No + [% END %] + [% IF consent.given_on %] + + [% ELSIF consent.refused_on %] +

We registered that you did not consent on [% consent.refused_on | html %].

+ [% END %]
- [% IF consent.given_on %] - - [% ELSIF consent.refused_on %] -

We registered that you did not consent on [% consent.refused_on | html %].

- [% END %] -
[% END %]
@@ -89,13 +97,6 @@ [% BLOCK jsinclude %]