lp1777677 Test Notification OPAC success prompt
authorKyle Huckins <khuckins@catalyte.io>
Wed, 28 Nov 2018 21:09:04 +0000 (21:09 +0000)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 1 Feb 2019 01:02:30 +0000 (20:02 -0500)
- Move OPAC success prompt higher up to ensure message is
seen.
- Ensure OPAC SMS test notification doesn't send email.

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
 Changes to be committed:
modified:   Open-ILS/src/templates/opac/myopac/prefs.tt2
modified:   Open-ILS/src/templates/opac/myopac/prefs_notify.tt2

Open-ILS/src/templates/opac/myopac/prefs.tt2
Open-ILS/src/templates/opac/myopac/prefs_notify.tt2

index 39bba39..cf7670c 100644 (file)
                     title="[% l('Change Password') %]">[% l("Change") %]</a></td>
                 [%- END %]
             </tr>
+            <tr id="test_notification_banner" style="display:none">
+                <td colspan="4">
+                    [% INCLUDE "opac/myopac/test_notification.tt2" %]
+                </td>
+            </tr>
             <tr>
                 <td class='color_4 light_border'>[% l("Email Address") %]</td>
                 <td class='light_border'>[% ctx.user.email | html %]</td>
                     title="[% l('Update Email Address') %]">[% l('Change') %]</a></td>
                 [%- END %]
             </tr>
-            <tr id="test_notification_banner" style="display:none">
-                <td colspan="4">
-                    [% INCLUDE "opac/myopac/test_notification.tt2" %]
-                </td>
-            </tr>
             <tr>
             [% IF ctx.user.ident_value %]<tr class="hide_me">
                 <td class='color_4 light_border'>
index bbde0d8..dc8173f 100644 (file)
                 <td>[% INCLUDE "opac/parts/sms_carrier_selector.tt2" sms_carrier_hide_label="true" %]</td>
             </tr>
             [% setting = 'opac.default_sms_notify' %]
+            <tr id="test_notification_banner" style="display:none">
+                <td colspan="4">
+                    [% INCLUDE "opac/myopac/test_notification.tt2" %]
+                </td>
+            </tr>
             <tr>
                 <td><label for='[% setting %]'>[% l('Default Mobile Number') %]</label></td>
                 <td>
                         [% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
                     [% IF ctx.user_setting_map.$setting; %]
                     <a href="#" onclick="sendTestNotification(
-                        [% ctx.user.id %], [% ctx.user.home_ou.id %], 'email', '[% ctx.authtoken %]'
+                        [% ctx.user.id %], [% ctx.user.home_ou.id %], 'sms_text', '[% ctx.authtoken %]'
                     )"
                     title="[% l('Send Test Text Message') %]">[% l('Send Test Text Message') %]</a><br />
                     [% l('Hint: use the full 10 digits of your phone #, no spaces, no dashes'); %]
                     [% END %]
                 </td>
             </tr>
-            <tr id="test_notification_banner" style="display:none">
-                <td colspan="4">
-                    [% INCLUDE "opac/myopac/test_notification.tt2" %]
-                </td>
-            </tr>
             [% END %]
             [% FOR optin IN ctx.opt_in_settings %]
             <tr>