View | Details | Raw Unified | Return to bug 31503
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt (-5 / +11 lines)
Lines 1-5 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE AdditionalContents %]
2
[% USE AdditionalContents %]
3
[% USE AuthorisedValues %]
4
[% USE raw %]
3
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
4
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5
[% SET consentview = 1 %]
7
[% SET consentview = 1 %]
Lines 41-55 Link Here
41
                        <input type="hidden" name="op" value="save"/>
43
                        <input type="hidden" name="op" value="save"/>
42
                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
44
                        <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
43
                        [% FOREACH consent IN consents %]
45
                        [% FOREACH consent IN consents %]
44
                            <legend><h2>Consent for [% consent.type | html %]</h2></legend>
46
                            <legend><h2>
47
                                Consent for [% consent.type | html # TODO additional_contents.title %]
48
                            </h2></legend>
45
                            <fieldset>
49
                            <fieldset>
46
                                <ul><li>
50
                                <ul><li>
47
                                    [% IF consent.type == 'GDPR_PROCESSING' %]
51
                                    [% description = AuthorisedValues.GetByCode( 'PATRON_CONSENT', consent.type, 1 ) # TODO additional_contents.content %]
52
                                    [% IF description %]
53
                                        [% description | $raw %]
54
                                    [% ELSIF consent.type == 'GDPR_PROCESSING' # Backward compatbility ;) %]
48
                                        <p>Please read the <a target="_blank" href="[% Koha.Preference('PrivacyPolicyURL') | url %]">privacy policy</a>.</p>
55
                                        <p>Please read the <a target="_blank" href="[% Koha.Preference('PrivacyPolicyURL') | url %]">privacy policy</a>.</p>
49
                                        <p>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 <strong>remove</strong> your account within a reasonable time.</p>
56
                                        <p>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 <strong>remove</strong> your account within a reasonable time.</p>
50
                                        <p>Do you agree with our processing of your personal data as outlined in the policy?</p>
57
                                        <p>Do you agree with our processing of your personal data as outlined in the policy?</p>
51
                                    [% ELSE %]
58
                                    [% ELSE # Fallback only %]
52
                                        <p>Description for [% consent.type | html #TODO %]. Do you agree?</p>
59
                                        <p>Description for [% consent.type | html %]. Do you agree?</p>
53
                                    [% END %]
60
                                    [% END %]
54
                                    <p>
61
                                    <p>
55
                                        <input type="radio" name="check_[% consent.type | html %]" value="1"> Yes<br>
62
                                        <input type="radio" name="check_[% consent.type | html %]" value="1"> Yes<br>
56
- 

Return to bug 31503