diff options
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/cust_pay_pending.html | 2 | ||||
-rw-r--r-- | httemplate/edit/elements/edit.html | 5 | ||||
-rw-r--r-- | httemplate/edit/process/cust_pay_pending.html | 2 | ||||
-rw-r--r-- | httemplate/edit/process/elements/ApplicationCommon.html | 2 | ||||
-rw-r--r-- | httemplate/edit/quick-charge.html | 13 |
5 files changed, 17 insertions, 7 deletions
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 @@ <TR> <TD ALIGN="center"> - <BUTTON TYPE="button" onClick="document.pendingform.action.value = 'insert_cust_pay'; document.pendingform.submit();"><!--IMG SRC="<%$p%>images/tick.png" ALT=""-->Yes, transaction completed sucessfully.</BUTTON> + <BUTTON TYPE="button" onClick="document.pendingform.action.value = 'insert_cust_pay'; document.pendingform.submit();"><!--IMG SRC="<%$p%>images/tick.png" ALT=""-->Yes, transaction completed successfully.</BUTTON> </TD> % if ( $action eq 'complete' ) { 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' } }; <FORM NAME = "edit_topform" METHOD = POST ACTION = "<% $url %>" @@ -412,7 +412,8 @@ Example: % ## set conditionname field values for validation. % if ($field eq 'conditionname') { % my $validate_field = $field . $fieldnum . '.after_event.run_delay'; -% $js_form_validate->{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 = 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" &> <SCRIPT TYPE="text/javascript"> topreload(); </SCRIPT> 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) { </SCRIPT> +%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> |