From c907f04e8c0af7700c681b673242cb88b0938393 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Tue, 26 Jul 2011 14:46:18 -0400 Subject: [PATCH] Give the patrons the opportunity to see and change their e-mail address... ... before they submit fine payments. This way they have a better chance of getting a receipt e-mailed to them. Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm | 10 +++++++--- Open-ILS/web/css/skin/default/opac/style.css | 9 +++++---- .../web/templates/default/opac/myopac/main_payment_form.tt2 | 11 +++++++++-- Open-ILS/web/templates/default/opac/myopac/main_payments.tt2 | 2 +- Open-ILS/web/templates/default/opac/myopac/update_email.tt2 | 3 +++ 5 files changed, 25 insertions(+), 10 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index d1c16589b7..00019588b4 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -1026,10 +1026,14 @@ sub load_myopac_update_email { 'open-ils.actor.user.email.update', $e->authtoken, $email); - my $url = $self->apache->unparsed_uri; - $url =~ s/update_email/prefs/; + unless ($self->cgi->param("redirect_to")) { + my $url = $self->apache->unparsed_uri; + $url =~ s/update_email/prefs/; - return $self->generic_redirect($url); + return $self->generic_redirect($url); + } + + return $self->generic_redirect; } sub load_myopac_update_username { diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css index cf2088b731..f3078fef0a 100644 --- a/Open-ILS/web/css/skin/default/opac/style.css +++ b/Open-ILS/web/css/skin/default/opac/style.css @@ -876,10 +876,11 @@ div.select-wrapper:hover { padding-right: 5px; } -#myopac_payments_table th { text-align: left; } -#myopac_payments_table tbody tr:nth-child(odd) { background-color: #ddd; } -#myopac_payments_table form { display: inline; } -#myopac_payments_table input[type="submit"] { padding: 1px; } +.myopac_payments_table th { text-align: left; } +.myopac_payments_table thead th { border-bottom: 1px dashed #333; } +.myopac_payments_table tbody tr:nth-child(odd) { background-color: #ddd; } +.myopac_payments_table form { display: inline; } +.myopac_payments_table input[type="submit"] { padding: 1px; } .payment-error { font-weight: bold; color: red; diff --git a/Open-ILS/web/templates/default/opac/myopac/main_payment_form.tt2 b/Open-ILS/web/templates/default/opac/myopac/main_payment_form.tt2 index f5345d57f2..edc012e83a 100644 --- a/Open-ILS/web/templates/default/opac/myopac/main_payment_form.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/main_payment_form.tt2 @@ -24,8 +24,8 @@ [% l('Billing Information') %] - [% l('Selected fines you are paying for:') %] - +

[% l('Selected fines you are paying for:') %]

+
@@ -77,6 +77,13 @@ + + + + diff --git a/Open-ILS/web/templates/default/opac/myopac/main_payments.tt2 b/Open-ILS/web/templates/default/opac/myopac/main_payments.tt2 index 7e1e44b18b..0a3b192f11 100644 --- a/Open-ILS/web/templates/default/opac/myopac/main_payments.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/main_payments.tt2 @@ -21,7 +21,7 @@
[% IF ctx.payments.size %] -
[% l('Name') %]
[% l('Email Address') %] + + [% l("Update") %] +
[% l('Street Address') %]
+
diff --git a/Open-ILS/web/templates/default/opac/myopac/update_email.tt2 b/Open-ILS/web/templates/default/opac/myopac/update_email.tt2 index 2261c29351..a6e62ecb00 100644 --- a/Open-ILS/web/templates/default/opac/myopac/update_email.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/update_email.tt2 @@ -13,6 +13,9 @@ [% END %] + [% IF CGI.param("return_to_referer") %] + + [% END %]
[% l('Payment Date') %] [% l('Payment For') %]
-- 2.11.0
[% l('Current Email') %][% ctx.user.email | html %]
[% l('New Email') %]