|
Lines 94-100
Link Here
|
| 94 |
[% END %] |
94 |
[% END %] |
| 95 |
<div id="consentButtons"> |
95 |
<div id="consentButtons"> |
| 96 |
<button type="button" class="btn btn-primary consentAcceptAll">Accept all cookies</button> |
96 |
<button type="button" class="btn btn-primary consentAcceptAll">Accept all cookies</button> |
| 97 |
[% IF ( Koha.Preference( 'CookieConsentedJS' ).length > 0 ) %] |
97 |
[% IF ( JSConsents.all('staffConsent').size ) %] |
| 98 |
<button type="button" class="btn btn-primary consentAcceptEssential">Accept only essential cookies</button> |
98 |
<button type="button" class="btn btn-primary consentAcceptEssential">Accept only essential cookies</button> |
| 99 |
<button type="button" class="btn btn-info" id="consentMoreInfo">More information</button> |
99 |
<button type="button" class="btn btn-info" id="consentMoreInfo">More information</button> |
| 100 |
[% END %] |
100 |
[% END %] |
|
Lines 116-122
Link Here
|
| 116 |
</div> |
116 |
</div> |
| 117 |
[% END %] |
117 |
[% END %] |
| 118 |
<div id="consentCookieList"> |
118 |
<div id="consentCookieList"> |
| 119 |
[% consents = JSConsents.all() %] |
119 |
[% consents = JSConsents.all('staffConsent') %] |
| 120 |
[% FOREACH consent IN consents %] |
120 |
[% FOREACH consent IN consents %] |
| 121 |
<div class="consentModalItem"> |
121 |
<div class="consentModalItem"> |
| 122 |
<div class="consentItemCheckbox"> |
122 |
<div class="consentItemCheckbox"> |
|
Lines 133-139
Link Here
|
| 133 |
<div class="modal-footer"> |
133 |
<div class="modal-footer"> |
| 134 |
<div id="consentButtons"> |
134 |
<div id="consentButtons"> |
| 135 |
<button type="button" class="btn btn-primary consentAcceptAll">Accept all cookies</button> |
135 |
<button type="button" class="btn btn-primary consentAcceptAll">Accept all cookies</button> |
| 136 |
[% IF ( Koha.Preference( 'CookieConsentedJS' ).length > 0 ) %] |
136 |
[% IF ( JSConsents.all('staffConsent').size ) %] |
| 137 |
<button type="button" class="btn btn-primary consentAcceptEssential">Accept only essential cookies</button> |
137 |
<button type="button" class="btn btn-primary consentAcceptEssential">Accept only essential cookies</button> |
| 138 |
<button type="button" class="btn btn-success" id="consentAcceptSelected">Accept selected non-essential cookies</button> |
138 |
<button type="button" class="btn btn-success" id="consentAcceptSelected">Accept selected non-essential cookies</button> |
| 139 |
[% END %] |
139 |
[% END %] |
|
Lines 145-152
Link Here
|
| 145 |
</div> <!-- /#cookieConsentModal --> |
145 |
</div> <!-- /#cookieConsentModal --> |
| 146 |
[% END %] |
146 |
[% END %] |
| 147 |
<!-- CookieConsentedJS code that may run --> |
147 |
<!-- CookieConsentedJS code that may run --> |
| 148 |
[% IF Koha.Preference( 'CookieConsent' ) && Koha.Preference( 'CookieConsentedJS' ).length > 0 %] |
148 |
[% IF Koha.Preference( 'CookieConsent' ) && JSConsents.all('staffConsent').size %] |
| 149 |
[% consents = JSConsents.all() %] |
149 |
[% consents = JSConsents.all('staffConsent') %] |
| 150 |
[% FOREACH consent IN consents %] |
150 |
[% FOREACH consent IN consents %] |
| 151 |
<div class="consentCode" style="display:none" aria-hidden="true" data-consent-id="[% consent.id | html %]" data-consent-code="[% consent.code | html %]" data-consent-match-pattern="[% consent.matchPattern | html %]" data-consent-cookie-domain="[% consent.cookieDomain | html %]" data-consent-cookie-path="[% consent.cookiePath | html %]" data-requires-consent="[% consent.staffConsent ? 'true' : 'false' | html %]"></div> |
151 |
<div class="consentCode" style="display:none" aria-hidden="true" data-consent-id="[% consent.id | html %]" data-consent-code="[% consent.code | html %]" data-consent-match-pattern="[% consent.matchPattern | html %]" data-consent-cookie-domain="[% consent.cookieDomain | html %]" data-consent-cookie-path="[% consent.cookiePath | html %]" data-requires-consent="[% consent.staffConsent ? 'true' : 'false' | html %]"></div> |
| 152 |
[% END %] |
152 |
[% END %] |