LP1908616 Add email display to hold edit user/gcollum/lp1908616_display_email_when_placing_hold-signoff
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 4 Jan 2021 20:09:15 +0000 (15:09 -0500)
committerGarry Collum <gcollum@gmail.com>
Mon, 8 Feb 2021 19:51:55 +0000 (14:51 -0500)
Note: This is built atop the patch for LP1902265

This display's the current email address (or note if there
is no address) on the Edit Hold page of My Account in the
Bootstrap OPAC.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Open-ILS/src/templates-bootstrap/opac/myopac/holds/edit.tt2

index 603d9cf..06755c6 100755 (executable)
                         <div class="form-check mt-3">
                             <input class="form-check-input" type="checkbox" name="email_notify" id="email_notify"
                                 [% IF ahr.email_notify == 't' %] checked [% END %] />
-                            <label class="form-check-label" for="email_notify">[% l('Email notification') %]</label>
+                            <label class="form-check-label" for="email_notify">[% l('Email notification') %]</label>:  
+                            [% IF !ctx.user.email; 
+                                l('<br>No configured Email address. See "My Account" for setting your Email address.'); 
+                            ELSE; ctx.user.email; 
+                            END %]
                         </div>
 
                         <div class="form-group">