From 55017a988ebdd9456d66b23f973b560733abfb55 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 3 Mar 2017 10:18:01 -0800 Subject: successful spelling, RT#74993 --- httemplate/edit/cust_pay_pending.html | 2 +- httemplate/edit/process/cust_pay_pending.html | 2 +- httemplate/edit/process/elements/ApplicationCommon.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'httemplate/edit') diff --git a/httemplate/edit/cust_pay_pending.html b/httemplate/edit/cust_pay_pending.html index 7d480f319..a8cc186e4 100644 --- a/httemplate/edit/cust_pay_pending.html +++ b/httemplate/edit/cust_pay_pending.html @@ -105,7 +105,7 @@ - + % if ( $action eq 'complete' ) { diff --git a/httemplate/edit/process/cust_pay_pending.html b/httemplate/edit/process/cust_pay_pending.html index 80bd14aaf..fe3602c21 100644 --- a/httemplate/edit/process/cust_pay_pending.html +++ b/httemplate/edit/process/cust_pay_pending.html @@ -38,7 +38,7 @@ if ( $action eq 'delete' ) { if ( $error ) { $title = 'Error deleting pending payment'; } else { - $title = 'Pending payment deletion sucessful'; + $title = 'Pending payment deletion successful'; } } elsif ( $action eq 'insert_cust_pay' ) { diff --git a/httemplate/edit/process/elements/ApplicationCommon.html b/httemplate/edit/process/elements/ApplicationCommon.html index 097a45d4f..b7501d462 100644 --- a/httemplate/edit/process/elements/ApplicationCommon.html +++ b/httemplate/edit/process/elements/ApplicationCommon.html @@ -24,7 +24,7 @@ Examples: % my $query = $m->scomp('/elements/create_uri_query'); <% $cgi->redirect(popurl(2). $opt{error_redirect}. "?$query") %> %} else { -<& /elements/header-popup.html, "$src_thing application$to sucessful" &> +<& /elements/header-popup.html, "$src_thing application$to successful" &> -- cgit v1.2.1 From f650b4e98438c2a321ffee85bcd01d700f87b851 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Fri, 3 Mar 2017 13:19:24 -0500 Subject: RT# 21110, Updated files to use jquery-validate jquery plugin. This allows for field validation instead of just form validation. Also updated footer so it does not use experimental keys on scalar. Dereferenced hash ref prior to using keys. --- httemplate/edit/elements/edit.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'httemplate/edit') diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 3eb75f85f..377a56c79 100644 --- a/httemplate/edit/elements/edit.html +++ b/httemplate/edit/elements/edit.html @@ -240,7 +240,7 @@ Example: % my $url = $opt{'post_url'} || popurl(1)."process/$table.html"; -% $js_form_validate = { 'edit_topform' => { 'name' => 'edit_topform', 'errormessage' => 'Please only numeric characters ' } }; +% $js_form_validate = { 'edit_topform' => { 'name' => 'edit_topform' } };
{edit_topform}{$validate_field} = 'numeric'; +% $js_form_validate->{edit_topform}->{validate_fields}{$validate_field} = 'digits: true'; +% $js_form_validate->{edit_topform}->{error_message}{$validate_field} = 'Please only enter numbers here.'; % } % % my @include = -- cgit v1.2.1 From 62157b20f819936d8287f12689c3b5cb34efe7ae Mon Sep 17 00:00:00 2001 From: Justin DeVuyst Date: Fri, 3 Mar 2017 19:20:40 -0500 Subject: Add quantity validation for one-time charge. See RT#37675. --- httemplate/edit/quick-charge.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'httemplate/edit') diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index af6fd417d..2d38203fa 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -449,10 +449,19 @@ function bill_now_changed (what) { +%my %footer_args = ( +% formvalidation => { +% QuickChargeForm => { +% validate_fields => { +% quantity => 'digits: true, min: 1, required: true', +% }, +% }, +% }, +%); % if ( $quotationnum ) { - <& /elements/footer.html &> + <& /elements/footer.html, %footer_args &> % } else { - <& /elements/footer-cust_main.html &> + <& /elements/footer-cust_main.html, %footer_args &> % } <%init> -- cgit v1.2.1