LP1908616 Add email display to hold edit
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 4 Jan 2021 20:09:15 +0000 (15:09 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 12 Mar 2021 21:12:53 +0000 (16:12 -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>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
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">