From ff1ddd69a6c91c97c15a31ca6dfd1a601da92837 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 21 Jul 2020 17:24:46 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index 05cd793840..d15538e1b0 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -461,10 +461,10 @@ within the "form" by name for validation.
[% draw_field_label('au', 'email') %] [% draw_form_input('au', 'email', '', 'email') %] -
- -
+ @@ -782,12 +782,15 @@ within the "form" by name for validation.
- +
@@ -798,6 +801,7 @@ within the "form" by name for validation.
-- 2.11.0