[freeside-commits] freeside/httemplate/misc cancel_cust.html, 1.7, 1.8 cancel_pkg.html, 1.11, 1.12 change_pkg.cgi, 1.13, 1.14 cust_main-cancel.cgi, 1.8, 1.9 order_pkg.html, 1.25, 1.26 payment.cgi, 1.28, 1.29
Erik Levinson
levinse at wavetail.420.am
Sun May 22 14:48:34 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv22746/misc
Modified Files:
cancel_cust.html cancel_pkg.html change_pkg.cgi
cust_main-cancel.cgi order_pkg.html payment.cgi
Log Message:
internationalization/localization, RT12515
Index: order_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/order_pkg.html,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -w -d -r1.25 -r1.26
--- order_pkg.html 25 Apr 2011 04:37:08 -0000 1.25
+++ order_pkg.html 22 May 2011 21:48:32 -0000 1.26
@@ -1,4 +1,4 @@
-<% include('/elements/header-popup.html', 'Order new package' ) %>
+<& /elements/header-popup.html, emt('Order new package') &>
<LINK REL="stylesheet" TYPE="text/css" HREF="../elements/calendar-win2k-2.css" TITLE="win2k-2">
<SCRIPT TYPE="text/javascript" SRC="../elements/calendar_stripped.js"></SCRIPT>
@@ -7,7 +7,7 @@
<SCRIPT TYPE="text/javascript" SRC="../elements/order_pkg.js"></SCRIPT>
-<% include('/elements/error.html') %>
+<& /elements/error.html &>
<FORM NAME="OrderPkgForm" ACTION="<% $p %>edit/process/quick-cust_pkg.cgi" METHOD="POST">
@@ -21,64 +21,61 @@
% if ( $part_pkg ) {
<INPUT TYPE="hidden" NAME="pkgpart" VALUE="<% $part_pkg->pkgpart %>">
<TR>
- <TH ALIGN="right">Package</TH>
+ <TH ALIGN="right"><% mt('Package') |h %></TH>
<TD COLSPAN=6><% $part_pkg->pkg_comment |h %></TD>
</TR>
% } else {
- <% include('/elements/tr-select-cust-part_pkg.html',
+ <& /elements/tr-select-cust-part_pkg.html,
'curr_value' => $pkgpart,
'classnum' => -1,
'cust_main' => $cust_main,
'onchange' => 'enable_order_pkg',
- )
- %>
+ &>
% }
<TR>
- <TH ALIGN="right">Start date </TD>
+ <TH ALIGN="right"><% mt('Start date') |h %> </TD>
<TD COLSPAN=6>
- <% include('/elements/input-date-field.html',{
+ <& /elements/input-date-field.html,{
'name' => 'start_date',
'format' => $date_format,
'value' => $start_date,
'noinit' => 1,
- }) %>
- <FONT SIZE=-1>(leave blank to start immediately)</FONT>
+ } &>
+ <FONT SIZE=-1>(<% mt('leave blank to start immediately') |h %>)</FONT>
</TD>
</TR>
% if ( $cust_main->payby =~ /^(CARD|CHEK)$/ ) {
% my $what = lc(FS::payby->shortname($cust_main->payby));
<TR>
- <TH ALIGN="right">Disable automatic <% $what %> charge </TH>
+ <TH ALIGN="right"><% mt("Disable automatic $what charge") |h %> </TH>
<TD COLSPAN=6><INPUT TYPE="checkbox" NAME="no_auto" VALUE="Y"></TD>
</TR>
% }
% if ( $curuser->access_right('Discount customer package') ) {
- <% include('/elements/tr-select-discount.html',
+ <& /elements/tr-select-discount.html,
'element_etc' => 'DISABLED',
'colspan' => 7,
'cgi' => $cgi,
- )
- %>
+ &>
% }
% if ( $curuser->access_right('Waive setup fee') ) {
<TR>
- <TH ALIGN="right">Waive setup fee </TH>
+ <TH ALIGN="right"><% mt('Waive setup fee') |h %> </TH>
<TD COLSPAN=6><INPUT TYPE="checkbox" NAME="waive_setup" VALUE="Y"></TD>
</TR>
% }
% if ( $conf->exists('pkg_referral') ) {
- <% include('/elements/tr-select-part_referral.html',
+ <& /elements/tr-select-part_referral.html,
'curr_value' => scalar( $cgi->param('refnum') ), #get rid of empty_label first# || $cust_main->refnum,
'disable_empty' => 1,
'multiple' => $conf->exists('pkg_referral-multiple'),
'colspan' => 7,
- )
- %>
+ &>
% }
% if ( $cgi->param('lock_locationnum') ) {
@@ -91,23 +88,22 @@
% } else {
- <% include('/elements/tr-select-cust_location.html',
+ <& /elements/tr-select-cust_location.html,
'cgi' => $cgi,
'cust_main' => $cust_main,
- )
- %>
+ &>
% }
<TR>
- <TH ALIGN="right">Contract end date </TD>
+ <TH ALIGN="right"><% mt('Contract end date') |h %> </TD>
<TD COLSPAN=6>
- <% include('/elements/input-date-field.html',{
+ <& /elements/input-date-field.html,{
'name' => 'contract_end',
'format' => $date_format,
'value' => '',
'noinit' => 1,
- }) %>
+ } &>
</TD>
</TR>
@@ -115,13 +111,12 @@
% unless ( $cgi->param('lock_locationnum') ) {
- <% include( '/elements/standardize_locations.html',
+ <& /elements/standardize_locations.html,
'form' => "OrderPkgForm",
'onlyship' => 1,
'no_company' => 1,
'callback' => 'document.OrderPkgForm.submit();',
- )
- %>
+ &>
% }
Index: payment.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/payment.cgi,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -w -d -r1.28 -r1.29
--- payment.cgi 21 Jan 2011 22:17:30 -0000 1.28
+++ payment.cgi 22 May 2011 21:48:32 -0000 1.29
@@ -1,18 +1,16 @@
-<% include( '/elements/header.html', "Process $type{$payby} payment" ) %>
-<% include( '/elements/small_custview.html', $cust_main, '', '', popurl(2) . "view/cust_main.cgi" ) %>
+<& /elements/header.html, emt("Process [_1] payment",$type{$payby}) &>
+<& /elements/small_custview.html, $cust_main, '', '', popurl(2) . "view/cust_main.cgi" &>
<FORM NAME="OneTrueForm" ACTION="process/payment.cgi" METHOD="POST" onSubmit="document.OneTrueForm.process.disabled=true">
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
<INPUT TYPE="hidden" NAME="payby" VALUE="<% $payby %>">
<INPUT TYPE="hidden" NAME="payunique" VALUE="<% $payunique %>">
<INPUT TYPE="hidden" NAME="balance" VALUE="<% $balance %>">
-<% include('/elements/init_overlib.html') %>
-
-% #include( '/elements/table.html', '#cccccc' )
+<& /elements/init_overlib.html &>
<% ntable('#cccccc') %>
<TR>
- <TH ALIGN="right">Payment amount</TH>
+ <TH ALIGN="right"><% mt('Payment amount') |h %></TH>
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
<% $money_char %><INPUT NAME = "amount"
@@ -67,11 +65,10 @@
% }
-<% include('/elements/tr-select-discount_term.html',
+<& /elements/tr-select-discount_term.html,
'custnum' => $custnum,
'cgi' => $cgi
- )
-%>
+&>
% if ( $payby eq 'CARD' ) {
%
@@ -85,13 +82,13 @@
% }
<TR>
- <TH ALIGN="right">Card number</TH>
+ <TH ALIGN="right"><% mt('Card number') |h %></TH>
<TD COLSPAN=7>
<TABLE>
<TR>
<TD>
<INPUT TYPE="text" NAME="payinfo" SIZE=20 MAXLENGTH=19 VALUE="<%$payinfo%>"> </TD>
- <TH>Exp.</TH>
+ <TH><% mt('Exp.') |h %></TH>
<TD>
<SELECT NAME="month">
% for ( ( map "0$_", 1 .. 9 ), 10 .. 12 ) {
@@ -116,22 +113,21 @@
</TD>
</TR>
<TR>
- <TH ALIGN="right">CVV2</TH>
+ <TH ALIGN="right"><% mt('CVV2') |h %></TH>
<TD><INPUT TYPE="text" NAME="paycvv" VALUE="<% $paycvv %>" SIZE=4 MAXLENGTH=4>
- (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('../docs/cvv2.html', 480, 352, 'cvv2_popup' ), CAPTION, 'CVV2 Help', STICKY, AUTOSTATUSCAP, CLOSECLICK, DRAGGABLE ); return false;">help</A>)
+ (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('../docs/cvv2.html', 480, 352, 'cvv2_popup' ), CAPTION, 'CVV2 Help', STICKY, AUTOSTATUSCAP, CLOSECLICK, DRAGGABLE ); return false;"><% mt('help') |h %></A>)
</TD>
</TR>
<TR>
- <TH ALIGN="right">Exact name on card</TH>
+ <TH ALIGN="right"><% mt('Exact name on card') |h %></TH>
<TD><INPUT TYPE="text" SIZE=32 MAXLENGTH=80 NAME="payname" VALUE="<%$payname%>"></TD>
</TR>
- <% include( '/elements/location.html',
+ <& /elements/location.html,
'object' => $cust_main, #XXX errors???
'no_asterisks' => 1,
- 'address1_label' => 'Card billing address',
- )
- %>
+ 'address1_label' => emt('Card billing address'),
+ &>
% } elsif ( $payby eq 'CHEK' ) {
%
@@ -153,34 +149,33 @@
<INPUT TYPE="hidden" NAME="month" VALUE="12">
<INPUT TYPE="hidden" NAME="year" VALUE="2037">
<TR>
- <TD ALIGN="right">Account number</TD>
+ <TD ALIGN="right"><% mt('Account number') |h %></TD>
<TD><INPUT TYPE="text" SIZE=10 NAME="payinfo1" VALUE="<%$payinfo1%>"></TD>
- <TD ALIGN="right">Type</TD>
+ <TD ALIGN="right"><% mt('Type') |h %></TD>
<TD><SELECT NAME="paytype"><% join('', map { qq!<OPTION VALUE="$_" !.($paytype eq $_ ? 'SELECTED' : '').">$_</OPTION>" } @FS::cust_main::paytypes) %></SELECT></TD>
</TR>
<TR>
- <TD ALIGN="right">ABA/Routing number</TD>
+ <TD ALIGN="right"><% mt('ABA/Routing number') |h %></TD>
<TD>
<INPUT TYPE="text" SIZE=10 MAXLENGTH=9 NAME="payinfo2" VALUE="<%$payinfo2%>">
- (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('../docs/ach.html', 380, 240, 'ach_popup' ), CAPTION, 'ACH Help', STICKY, AUTOSTATUSCAP, CLOSECLICK, DRAGGABLE ); return false;">help</A>)
+ (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('../docs/ach.html', 380, 240, 'ach_popup' ), CAPTION, 'ACH Help', STICKY, AUTOSTATUSCAP, CLOSECLICK, DRAGGABLE ); return false;"><% mt('help') |h %></A>)
</TD>
</TR>
<TR>
- <TD ALIGN="right">Bank name</TD>
+ <TD ALIGN="right"><% mt('Bank name') |h %></TD>
<TD><INPUT TYPE="text" NAME="payname" VALUE="<%$payname%>"></TD>
</TR>
% if ( $conf->exists('show_bankstate') ) {
<TR>
- <TD ALIGN="right">Bank state</TD>
- <TD><% include('/elements/select-state.html',
+ <TD ALIGN="right"><% mt('Bank state') |h %></TD>
+ <TD><& /elements/select-state.html,
'disable_empty' => 0,
- 'empty_label' => '(choose)',
+ 'empty_label' => emt('(choose)'),
'state' => $paystate,
'country' => $cust_main->country,
'prefix' => 'pay',
- )
- %>
+ &>
</TD>
</TR>
% } else {
@@ -190,8 +185,8 @@
% if ( $conf->exists('show_ss') ) {
<TR>
<TD ALIGN="right">
- Account holder<BR>
- Social security or tax ID #
+ <% mt('Account holder') |h %><BR>
+ <% mt('Social security or tax ID #') |h %>
</TD>
<TD><INPUT TYPE="text" NAME="ss" VALUE="<% $ss %>"></TD>
</TR>
@@ -202,19 +197,18 @@
% if ( $conf->exists('show_stateid') ) {
<TR>
<TD ALIGN="right">
- Account holder<BR>
- Driver’s license or state ID #
+ <% mt('Account holder') |h %><BR>
+ <% mt("Driver's license or state ID #") |h %>
</TD>
<TD><INPUT TYPE="text" NAME="stateid" VALUE="<% $stateid %>"></TD>
- <TD ALIGN="right">State</TD>
- <TD><% include('/elements/select-state.html',
+ <TD ALIGN="right"><% mt('State') |h %></TD>
+ <TD><& /elements/select-state.html,
'disable_empty' => 0,
- 'empty_label' => '(choose)',
+ 'empty_label' => emt('(choose)'),
'state' => $stateid_state,
'country' => $cust_main->country,
'prefix' => 'stateid_',
- )
- %>
+ &>
</TD>
</TR>
% } else {
@@ -228,7 +222,7 @@
<TR>
<TD COLSPAN=2>
<INPUT TYPE="checkbox" CHECKED NAME="save" VALUE="1">
- Remember this information
+ <% mt('Remember this informatio') |h %>
</TD>
</TR>
@@ -245,7 +239,7 @@
<TR>
<TD COLSPAN=2>
<INPUT TYPE="checkbox" NAME="batch" VALUE="1">
- Add to current batch
+ <% mt('Add to current batch') |h %>
</TD>
</TR>
@@ -255,24 +249,24 @@
<TR>
<TD COLSPAN=2>
<INPUT TYPE="checkbox"<% ( ( $payby eq 'CARD' && $cust_main->payby ne 'DCRD' ) || ( $payby eq 'CHEK' && $cust_main->payby eq 'CHEK' ) ) ? ' CHECKED' : '' %> NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }">
- Charge future payments to this <% $type{$payby} %> automatically
+ <% mt("Charge future payments to this [_1] automatically",$type{$payby}) |h %>
</TD>
</TR>
</TABLE>
<BR>
-<INPUT TYPE="submit" NAME="process" VALUE="Process payment">
+<INPUT TYPE="submit" NAME="process" VALUE="<% mt('Process payment') |h %>">
</FORM>
-<% include('/elements/footer.html') %>
+<& /elements/footer.html &>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Process payment');
-my %type = ( 'CARD' => 'credit card',
- 'CHEK' => 'electronic check (ACH)',
+my %type = ( 'CARD' => emt('credit card'),
+ 'CHEK' => emt('electronic check (ACH)'),
);
$cgi->param('payby') =~ /^(CARD|CHEK)$/
Index: cancel_cust.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cancel_cust.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- cancel_cust.html 4 Sep 2010 02:19:03 -0000 1.7
+++ cancel_cust.html 22 May 2011 21:48:32 -0000 1.8
@@ -1,13 +1,11 @@
-<% include('/elements/header-popup.html', 'Cancel customer' ) %>
-
-<% include('/elements/error.html') %>
+<& /elements/header-popup.html, emt('Cancel customer') &>
+<& /elements/error.html &>
<FORM NAME="cust_cancel_popup" ACTION="<% popurl(1) %>cust_main-cancel.cgi" METHOD=POST>
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
-
- <P ALIGN="center"><B>Permanently delete all services and cancel this customer?</B>
+ <P ALIGN="center"><B><% mt('Permanently delete all services and cancel this customer?') |h %></B>
<TABLE BORDER="0" CELLSPACING="2"
STYLE="margin-left:auto; margin-right:auto">
@@ -15,17 +13,17 @@
<TD ALIGN="right">
<INPUT TYPE="radio" NAME="now_or_later" VALUE="0" onclick="toggle(false)" CHECKED />
</TD>
- <TD ALIGN="left">Cancel now</TD>
+ <TD ALIGN="left"><% mt('Cancel now') |h %></TD>
</TR>
<TR>
<TD ALIGN="right">
<INPUT TYPE="radio" NAME="now_or_later" VALUE="1" onclick="toggle(true)" />
</TD>
- <TD ALIGN="left">Cancel on date:
- <% include('/elements/input-date-field.html', {
+ <TD ALIGN="left"><% mt('Cancel on date: ') |h %>
+ <& /elements/input-date-field.html, {
'name' => 'expire',
'value' => time,
- } ) %>
+ } &>
</TD>
</TR>
</TABLE>
@@ -38,23 +36,30 @@
}
toggle(false);
</SCRIPT>
-<% $ban %>
+% if ( $cust_main->payby =~ /^(CARD|DCRD|CHEK|DCHK)$/ ) {
+% my $ban = "Ban this customer's ";
+% $ban .= 'credit card' if $cust_main->payby =~ /^(CARD|DCRD)$/;
+% $ban .= 'ACH account' if $cust_main->payby =~ /^(CHEK|DCHK)$/;
+ <P ALIGN="center">
+ <INPUT TYPE="checkbox" NAME="ban" ID="ban" VALUE="1"><% mt($ban) |h %>
+% }
<TABLE BGCOLOR="#cccccc", BORDER="0" CELLSPACING="2"
STYLE="margin-left:auto; margin-right:auto">
-<% include('/elements/tr-select-reason.html',
+<& /elements/tr-select-reason.html,
'field' => 'reasonnum',
'reason_class' => 'C',
'cgi' => $cgi,
'control_button' => "document.getElementById('confirm_cancel_cust_button')",
- )
-%>
+&>
</TABLE>
<BR>
<P ALIGN="CENTER">
-<INPUT TYPE="submit" NAME="submit" ID="confirm_cancel_cust_button" VALUE="Cancel customer" DISABLED> <INPUT TYPE="BUTTON" VALUE="Don't cancel" onClick="parent.cClick();">
+<INPUT TYPE="submit" NAME="submit" ID="confirm_cancel_cust_button" VALUE="<% mt('Cancel customer') |h %>" DISABLED>
+
+<INPUT TYPE="BUTTON" VALUE="<% mt("Don't cancel") |h %>" onClick="parent.cClick();">
</FORM>
</BODY>
@@ -76,16 +81,5 @@
} );
die "No customer # $custnum" unless $cust_main;
-my $ban = '';
-if ( $cust_main->payby =~ /^(CARD|DCRD|CHEK|DCHK)$/ ) {
- $ban = '<P ALIGN="center">'.
- '<INPUT TYPE="checkbox" NAME="ban" ID="ban" VALUE="1"> Ban this customer\'s ';
- if ( $cust_main->payby =~ /^(CARD|DCRD)$/ ) {
- $ban .= 'credit card';
- } elsif ( $cust_main->payby =~ /^(CHEK|DCHK)$/ ) {
- $ban .= 'ACH account';
- }
-}
-
</%init>
Index: change_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/change_pkg.cgi,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -w -d -r1.13 -r1.14
--- change_pkg.cgi 11 Apr 2011 23:06:16 -0000 1.13
+++ change_pkg.cgi 22 May 2011 21:48:32 -0000 1.14
@@ -1,8 +1,8 @@
-<% include('/elements/header-popup.html', "Change Package") %>
+<& /elements/header-popup.html, emt("Change Package") &>
<SCRIPT TYPE="text/javascript" SRC="../elements/order_pkg.js"></SCRIPT>
-<% include('/elements/error.html') %>
+<& /elements/error.html &>
<FORM NAME="OrderPkgForm" ACTION="<% $p %>edit/process/change-cust_pkg.html" METHOD=POST>
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
@@ -10,36 +10,32 @@
<% ntable('#cccccc') %>
<TR>
- <TH ALIGN="right">Current package</TH>
+ <TH ALIGN="right"><% mt('Current package') |h %></TH>
<TD COLSPAN=7>
<% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><B><% $part_pkg->pkg |h %></B> - <% $part_pkg->comment |h %>
</TD>
</TR>
- <% include('/elements/tr-select-cust-part_pkg.html',
- 'pre_label' => 'New',
+ <& /elements/tr-select-cust-part_pkg.html,
+ 'pre_label' => emt('New'),
'curr_value' => scalar($cgi->param('pkgpart')),
'classnum' => $part_pkg->classnum,
'cust_main' => $cust_main,
- #'extra_sql' => ' AND pkgpart != '. $cust_pkg->pkgpart,
- )
- %>
+ &>
- <% include('/elements/tr-select-cust_location.html',
+ <& /elements/tr-select-cust_location.html,
'cgi' => $cgi,
'cust_main' => $cust_main,
- )
- %>
+ &>
</TABLE>
-<% include( '/elements/standardize_locations.html',
+<& /elements/standardize_locations.html,
'form' => "OrderPkgForm",
'onlyship' => 1,
'no_company' => 1,
'callback' => 'document.OrderPkgForm.submit();',
- )
-%>
+&>
<BR>
<INPUT NAME = "submitButton"
Index: cancel_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cancel_pkg.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- cancel_pkg.html 9 Mar 2010 22:37:57 -0000 1.11
+++ cancel_pkg.html 22 May 2011 21:48:32 -0000 1.12
@@ -1,31 +1,27 @@
-%# if ( $link eq 'popup' ) {
- <% include('/elements/header-popup.html', $title ) %>
-%# } else {
-%# <% include("/elements/header.html", $title, '') %>
-%# }
+<& /elements/header-popup.html, emt($title) &>
<LINK REL="stylesheet" TYPE="text/css" HREF="../elements/calendar-win2k-2.css" TITLE="win2k-2">
<SCRIPT TYPE="text/javascript" SRC="../elements/calendar_stripped.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="../elements/calendar-en.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="../elements/calendar-setup.js"></SCRIPT>
-<% include('/elements/error.html') %>
+<& /elements/error.html &>
<FORM NAME="sc_popup" ACTION="<% popurl(1) %>process/cancel_pkg.html" METHOD=POST>
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
<INPUT TYPE="hidden" NAME="method" VALUE="<% $method %>">
-
<BR><BR>
-<% ucfirst($method) %> <% $part_pkg->pkg_comment %>
+<% emt(ucfirst($method)." [_1]", $part_pkg->pkg_comment) %>
<% ntable("#cccccc", 2) %>
% if ($method eq 'expire' || $method eq 'adjourn') {
<TR>
- <TD><% $submit =~ /^(\w*)\s/ %> package on </TD>
+% $submit =~ /^(\w*)\s/;
+ <TD><% mt("$1 package on") |h %> </TD>
<TD><INPUT TYPE="text" NAME="date" ID="expire_date" VALUE="<% $date |h %>">
- <IMG SRC="<% $p %>images/calendar.png" ID="expire_button" STYLE="cursor:pointer" TITLE="Select date">
- <BR><I>m/d/y</I>
+ <IMG SRC="<% $p %>images/calendar.png" ID="expire_button" STYLE="cursor:pointer" TITLE="<% mt('Select date') |h %>">
+ <BR><I><% mt('m/d/y') |h %></I>
</TD>
</TR>
<SCRIPT TYPE="text/javascript">
@@ -39,18 +35,17 @@
%}
%
-<% include('/elements/tr-select-reason.html',
+<& /elements/tr-select-reason.html,
'field' => 'reasonnum',
'reason_class' => $class,
'curr_value' => $reasonnum,
'control_button' => "document.getElementById('confirm_cancel_pkg_button')",
- )
-%>
+&>
</TABLE>
<BR>
-<INPUT TYPE="submit" NAME="submit" ID="confirm_cancel_pkg_button" VALUE="<% $submit %>" DISABLED>
+<INPUT TYPE="submit" NAME="submit" ID="confirm_cancel_pkg_button" VALUE="<% mt($submit) |h %>" DISABLED>
</FORM>
</BODY>
Index: cust_main-cancel.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cust_main-cancel.cgi,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -d -r1.8 -r1.9
--- cust_main-cancel.cgi 4 Sep 2010 02:19:03 -0000 1.8
+++ cust_main-cancel.cgi 22 May 2011 21:48:32 -0000 1.9
@@ -1,4 +1,4 @@
-<% include('/elements/header.html', "Customer cancelled") %>
+<& /elements/header.html, emt("Customer cancelled") &>
<SCRIPT TYPE="text/javascript">
window.top.location.reload();
</SCRIPT>
More information about the freeside-commits
mailing list