From 783abe31f8c441e7b00f83474c4fd95deb9f3130 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 c1b32ede80..d27d88d4ab 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 @@ -36,14 +36,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 ) %] @@ -55,15 +56,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 %]
@@ -85,13 +93,6 @@ [% BLOCK jsinclude %]