LP#1777677: (follow-up) adjust test message buttons in registration form
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 21 Jul 2020 21:24:46 +0000 (17:24 -0400)
committerKyle Huckins <khuckins@catalyte.io>
Thu, 21 Jan 2021 20:38:31 +0000 (20:38 +0000)
commit7d36c4a08d6920d4c6e9a787049d51839cd3144a
tree38a69d93efd328e179a26fe98cd7a8f29199e2af
parent1f10c1482f817004c08778a4e837236953cd8729
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