LP#1777677: (follow-up) adjust test message buttons in registration form user/gmcharlt/lp1777677_test_notification
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 21 Jul 2020 21:24:46 +0000 (17:24 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 21 Jul 2020 21:24:46 +0000 (17:24 -0400)
commit92405ea8a02a4c07fa56d206eb67cf99e3f4ced7
treecb9a82334cd46d91f0cb70d5bce26c2d870b9762
parent8e54341dce20993c81b8f8508f4f346afb0726e8
LP#1777677: (follow-up) adjust test message buttons in registration form

This patch:

* moves the 'Send Test Email' button in the patron registration form
  to cuddle next to the 'Invalidate' button
* disables the 'Send Test Email' button if the email address is
  changed on the form
* disables the 'Send Test Text' button if the SMS carrier or
  SMS text number is changed on the form

The point of the last two changes is to prevent staff members
from sending a test message prior to saving changes to the email
address or SMS number, as otherwise the test methods would not
have access to the new values.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/patron/t_edit.tt2