From b416c50d4124bf68f0a317012a872c20e7533800 Mon Sep 17 00:00:00 2001 From: Kyle M Hall <kyle@bywatersolutions.com> Date: Tue, 3 Nov 2020 18:13:28 +0000 Subject: [PATCH] Bug 25334: (QA follow-up) Update opac messaging Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- .../bootstrap/en/modules/opac-messaging.tt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt index 7f74fde6ae..44b12868d0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt @@ -48,6 +48,7 @@ <th>Days in advance</th> [% IF ( SMSSendDriver ) %]<th>SMS</th>[% END %] [% IF ( TalkingTechItivaPhone ) %]<th>Phone</th>[% END %] + [% IF Koha.Preference('PhoneNotification') %]<th>Phone</th>[% END %] <th>Email</th> <th>Digests only <i id="info_digests" data-toggle="tooltip" title="You can ask for a digest to reduce the number of messages. Messages will be saved and sent as a single message." data-placement="right" class="fa fa-info-circle"></i></th> </tr> @@ -93,6 +94,25 @@ <td>-</td> [% END %] [% END %] + [% IF Koha.Preference('PhoneNotification') %] + [% IF ( messaging_preference.transport_phone ) %] + <td> + [% IF ( messaging_preference.transports_phone ) %] + <input type="checkbox" + id="phone[% messaging_preference.message_attribute_id | html %]" + name="[% messaging_preference.message_attribute_id | html %]" + value="phone" checked="checked" onclick = "document.opacmessaging.none[% messaging_preference.message_attribute_id | html %].checked=false;" /> + [% ELSE %] + <input type="checkbox" + id="phone[% messaging_preference.message_attribute_id | html %]" + name="[% messaging_preference.message_attribute_id | html %]" + value="phone" onclick = "document.opacmessaging.none[% messaging_preference.message_attribute_id | html %].checked=false;" /> + [% END %] + </td> + [% ELSE %] + <td>-</td> + [% END %] + [% END %] [% IF ( TalkingTechItivaPhone ) %] [% IF ( messaging_preference.transport_itiva ) %] <td> -- 2.20.1