Bug 33398: Add primary_contact_method to display when triggering a waiting hold

To test:
1. Apply patch, yarn build
2. Trigger a waiting hold for a patron that has a value for primary_contact_method
3. Notice the modal now includes a line indicating the primary_contact_method.
4. Trigger a hold for a patron without a primary_contact_method. Nothing should display.

Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Lucas Gass 2023-04-04 15:43:41 +00:00 committed by Tomas Cohen Arazi
parent 3248afdc12
commit bb30626c49
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 5 additions and 1 deletions

View file

@ -483,7 +483,8 @@ form {
}
}
.notification_method {
.notification_method,
#main_contact_method {
background-color: #FFE;
border: 1px solid #CCC;
border-radius: 5px;

View file

@ -815,6 +815,9 @@
[% UNLESS ( transfertodo) %]
[% INCLUDE display_bormessagepref %]
[% IF patron.primary_contact_method %]
<li id="main_contact_method">Main contact method: <span>[% patron.primary_contact_method | html %]</span></li>
[% END %]
[% END %]
[% IF ( patron.is_debarred ) %]