|
Lines 44-60
Link Here
|
| 44 |
><p><strong>Settings updated</strong></p></div |
44 |
><p><strong>Settings updated</strong></p></div |
| 45 |
> |
45 |
> |
| 46 |
[% END %] |
46 |
[% END %] |
| 47 |
[% IF print_notice_charging && !patron_has_email %] |
47 |
[% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) %] |
| 48 |
<div class="alert alert-warning"> |
48 |
[% SET has_print_transport = 0 %] |
| 49 |
<h4><i class="fa fa-exclamation-triangle"></i> Print Notice Charges</h4> |
49 |
[% FOREACH pref IN messaging_preferences %] |
| 50 |
<p><strong>Important:</strong> Print notices incur a charge of [% print_notice_charge_amount | $Price %] each to cover postage and processing costs.</p> |
50 |
[% IF pref.transport_print %][% SET has_print_transport = 1 %][% LAST %][% END %] |
| 51 |
<p>To avoid these charges, please:</p> |
51 |
[% END %] |
| 52 |
<ul> |
52 |
[% END %] |
| 53 |
<li>Provide an email address in your <a href="/cgi-bin/koha/opac-memberentry.pl">account details</a></li> |
53 |
|
| 54 |
<li>Select email delivery for your notice preferences below</li> |
54 |
[% IF print_notice_charging && has_print_transport %] |
| 55 |
<li>Uncheck any print notice options if they are enabled</li> |
55 |
[% IF patron_has_email %] |
| 56 |
</ul> |
56 |
<div class="alert alert-info"> |
| 57 |
</div> |
57 |
<h4><i class="fa fa-info-circle"></i> Print notice charges may apply</h4> |
|
|
58 |
<p>Notices can be sent by post at a charge of [% print_notice_charge_amount | $Price %] each.</p> |
| 59 |
<p><strong>To avoid these charges, please:</strong></p> |
| 60 |
<ul> |
| 61 |
<li>Ensure print delivery is <strong>not</strong> selected for any notice type below.</li> |
| 62 |
<li>Select <strong>email</strong> or any other non-print transport all notices below.</li> |
| 63 |
</ul> |
| 64 |
</div> |
| 65 |
[% ELSE %] |
| 66 |
<div class="alert alert-warning"> |
| 67 |
<h4><i class="fa fa-exclamation-triangle"></i> Print notice charges will apply</h4> |
| 68 |
<p><strong>To avoid these charges, please:</strong></p> |
| 69 |
<p |
| 70 |
>We do not have an email address on file for your account. Your notices will be sent by post at a charge of |
| 71 |
[% IF print_notice_charge_amount %][% print_notice_charge_amount | $Price %][% ELSE %]0.00[% END %] each.</p |
| 72 |
> |
| 73 |
<p><strong>To avoid these charges, please:</strong></p> |
| 74 |
<ul> |
| 75 |
<li>Add an email address to your <a href="/cgi-bin/koha/opac-memberentry.pl">account</a> </li |
| 76 |
><li>Select email as your prefered delivery for each notice type</li> |
| 77 |
</ul> |
| 78 |
</div> |
| 79 |
[% END %] |
| 58 |
[% END %] |
80 |
[% END %] |
| 59 |
|
81 |
|
| 60 |
<form action="/cgi-bin/koha/opac-messaging.pl" method="post" name="opacmessaging"> |
82 |
<form action="/cgi-bin/koha/opac-messaging.pl" method="post" name="opacmessaging"> |
|
Lines 62-71
Link Here
|
| 62 |
<input type="hidden" name="op" value="cud-modify" /> |
84 |
<input type="hidden" name="op" value="cud-modify" /> |
| 63 |
|
85 |
|
| 64 |
[% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) %] |
86 |
[% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) %] |
| 65 |
[% SET has_print_transport = 0 %] |
|
|
| 66 |
[% FOREACH pref IN messaging_preferences %] |
| 67 |
[% IF pref.transport_print %][% SET has_print_transport = 1 %][% LAST %][% END %] |
| 68 |
[% END %] |
| 69 |
<table class="table table-bordered table-condensed table-striped"> |
87 |
<table class="table table-bordered table-condensed table-striped"> |
| 70 |
<caption class="sr-only">Your messaging settings</caption> |
88 |
<caption class="sr-only">Your messaging settings</caption> |
| 71 |
<thead> |
89 |
<thead> |
|
Lines 242-248
Link Here
|
| 242 |
|
260 |
|
| 243 |
[% IF ( messaging_preference.transport_email ) %] |
261 |
[% IF ( messaging_preference.transport_email ) %] |
| 244 |
<td class="selectcol"> |
262 |
<td class="selectcol"> |
| 245 |
[% IF ( messaging_preference.transports_email ) %] |
263 |
[% IF !patron_has_email %] |
|
|
264 |
<input |
| 265 |
type="checkbox" |
| 266 |
aria-label="Email messaging unavailable (no email address on file)" |
| 267 |
class="pmp_email" |
| 268 |
id="email[% messaging_preference.message_attribute_id | html %]" |
| 269 |
name="[% messaging_preference.message_attribute_id | html %]" |
| 270 |
value="email" |
| 271 |
disabled="disabled" |
| 272 |
/> |
| 273 |
[% ELSIF ( messaging_preference.transports_email ) %] |
| 246 |
<input |
274 |
<input |
| 247 |
type="checkbox" |
275 |
type="checkbox" |
| 248 |
aria-label="Unselect email messaging" |
276 |
aria-label="Unselect email messaging" |
|
Lines 270-276
Link Here
|
| 270 |
[% IF has_print_transport %] |
298 |
[% IF has_print_transport %] |
| 271 |
[% IF ( messaging_preference.transport_print ) %] |
299 |
[% IF ( messaging_preference.transport_print ) %] |
| 272 |
<td class="selectcol"> |
300 |
<td class="selectcol"> |
| 273 |
[% IF ( messaging_preference.transports_print ) %] |
301 |
[% IF !patron_has_email %] |
|
|
302 |
<input type="hidden" name="[% messaging_preference.message_attribute_id | html %]" value="print" /> |
| 303 |
<input |
| 304 |
type="checkbox" |
| 305 |
aria-label="Print messaging required (no email address on file)" |
| 306 |
class="pmp_print" |
| 307 |
id="print[% messaging_preference.message_attribute_id | html %]" |
| 308 |
name="[% messaging_preference.message_attribute_id | html %]" |
| 309 |
value="print" |
| 310 |
checked="checked" |
| 311 |
disabled="disabled" |
| 312 |
/> |
| 313 |
[% ELSIF ( messaging_preference.transports_print ) %] |
| 274 |
<input |
314 |
<input |
| 275 |
type="checkbox" |
315 |
type="checkbox" |
| 276 |
aria-label="Unselect print messaging" |
316 |
aria-label="Unselect print messaging" |
|
Lines 331-356
Link Here
|
| 331 |
</table> |
371 |
</table> |
| 332 |
[% END %] |
372 |
[% END %] |
| 333 |
|
373 |
|
| 334 |
[% IF print_notice_charging %] |
|
|
| 335 |
<div class="alert alert-info"> |
| 336 |
<h5><i class="fa fa-info-circle"></i> About Print Notice Charges</h5> |
| 337 |
<p>Print notices incur a charge of [% IF print_notice_charge_amount %][% print_notice_charge_amount | $Price %][% ELSE %]0.00[% END %] each to cover postage and processing costs.</p> |
| 338 |
<p><strong>To avoid these charges:</strong></p> |
| 339 |
<ul> |
| 340 |
[% IF !patron_has_email %] |
| 341 |
<li><strong>Add an email address</strong> to your <a href="/cgi-bin/koha/opac-memberentry.pl">account details</a></li> |
| 342 |
[% END %] |
| 343 |
<li>Select "Email" instead of "Print" for your notice preferences above</li> |
| 344 |
<li>Uncheck any enabled print notice preferences above</li> |
| 345 |
</ul> |
| 346 |
[% IF patron_has_email %] |
| 347 |
<p class="text-success">✓ You have an email address on file. Make sure to select email delivery for notices to avoid print charges.</p> |
| 348 |
[% ELSE %] |
| 349 |
<p class="text-warning"><strong>⚠ Important:</strong> You don't have an email address on file. Print notices may be automatically selected for your account.</p> |
| 350 |
[% END %] |
| 351 |
</div> |
| 352 |
[% END %] |
| 353 |
|
| 354 |
[% IF ( SMSSendDriver || Koha.Preference('TranslateNotices') ) %] |
374 |
[% IF ( SMSSendDriver || Koha.Preference('TranslateNotices') ) %] |
| 355 |
<fieldset class="rows d-print-none"> |
375 |
<fieldset class="rows d-print-none"> |
| 356 |
<ol> |
376 |
<ol> |
| 357 |
- |
|
|