summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main/first_pkg
diff options
context:
space:
mode:
authorlevinse <levinse>2011-05-23 16:25:27 +0000
committerlevinse <levinse>2011-05-23 16:25:27 +0000
commitb5dbd9e1bcbb701a20ed23e723b1e0105fd7c1a1 (patch)
tree982841fb75a9997045f4a7f665a9f365f3bfde33 /httemplate/edit/cust_main/first_pkg
parentd884f87c167fa00a24b2347c46606585b8420657 (diff)
internationalization/localization, RT12515
Diffstat (limited to 'httemplate/edit/cust_main/first_pkg')
-rw-r--r--httemplate/edit/cust_main/first_pkg/select-part_pkg.html23
-rw-r--r--httemplate/edit/cust_main/first_pkg/svc_acct.html18
2 files changed, 14 insertions, 27 deletions
diff --git a/httemplate/edit/cust_main/first_pkg/select-part_pkg.html b/httemplate/edit/cust_main/first_pkg/select-part_pkg.html
index 9d37f15eb..aa3e805a2 100644
--- a/httemplate/edit/cust_main/first_pkg/select-part_pkg.html
+++ b/httemplate/edit/cust_main/first_pkg/select-part_pkg.html
@@ -1,14 +1,12 @@
-<% include('/elements/xmlhttp.html',
+<& /elements/xmlhttp.html,
'url' => $url_prefix.'misc/svc_acct-domains.cgi',
'subs' => [ $opt{'prefix'}. 'get_domains' ],
- )
-%>
+&>
-<% include('/elements/xmlhttp.html',
+<& /elements/xmlhttp.html,
'url' => $url_prefix.'misc/part_svc-columns.cgi',
'subs' => [ $opt{'prefix'}. 'get_part_svc' ],
- )
-%>
+&>
<INPUT TYPE="hidden" NAME="svcdb" VALUE="">
@@ -101,19 +99,16 @@
</SCRIPT>
-<% include( '/elements/selectlayers.html',
+<& /elements/selectlayers.html,
'field' => $opt{'prefix'}. 'pkgpart_svcpart',
'curr_value' => $opt{pkgpart_svcpart},
'options' => \@options,
'labels' => \%labels,
'html_between' => '</TD></TR></TABLE>',
- #'onchange' => $opt{'prefix'}. 'pkgpart_svcpart_changed(this,0);',
'onchange' => $opt{'prefix'}. 'pkgpart_svcpart_changed_too(what,0)',
-
'layer_callback' => $layer_callback,
'layermap' => \%layermap,
- )
-%>
+&>
<SCRIPT TYPE="text/javascript">
pkgpart_svcpart_changed_too( document.CustomerForm.pkgpart_svcpart,
@@ -156,13 +151,9 @@ my %labels = ( '' => ( $opt{'empty_label'} || '(none)' ),
my $layer_callback = sub {
my $layer = shift;
- #$layer_fields, $layer_values, $layer_prefix
-
-# my( $pkgpart, $svcpart ) = split('_', $layer);
-# my $svcdb = $svcdb{$pkgpart};
my $svcdb = $layer;
- return '' unless $svcdb; #'<BR><BR><BR><BR><BR>'
+ return '' unless $svcdb;
#full path cause we're being slung around as a coderef (mason closures?)
include("/edit/cust_main/first_pkg/$svcdb.html", %opt, );
diff --git a/httemplate/edit/cust_main/first_pkg/svc_acct.html b/httemplate/edit/cust_main/first_pkg/svc_acct.html
index 150d4c043..b1ccc137c 100644
--- a/httemplate/edit/cust_main/first_pkg/svc_acct.html
+++ b/httemplate/edit/cust_main/first_pkg/svc_acct.html
@@ -1,7 +1,7 @@
<% ntable("#cccccc") %>
<TR>
- <TD ALIGN="right">Username</TD>
+ <TD ALIGN="right"><% mt('Username') |h %></TD>
<TD>
<INPUT TYPE = "text"
NAME = "username"
@@ -13,16 +13,16 @@
</TR>
<TR>
- <TD ALIGN="right">Domain</TD>
+ <TD ALIGN="right"><% mt('Domain') |h %></TD>
<TD>
<SELECT NAME="domsvc">
- <OPTION>(none)</OPTION>
+ <OPTION>(<% mt('none') |h %>)</OPTION>
</SELECT>
</TD>
</TR>
<TR>
- <TD ALIGN="right">Password</TD>
+ <TD ALIGN="right"><% mt('Password') |h %></TD>
<TD>
<INPUT TYPE = "text"
NAME = "_password"
@@ -37,7 +37,7 @@
% if ( $opt{'password_verify'} ) {
<TR>
- <TD ALIGN="right">Re-enter Password</TD>
+ <TD ALIGN="right"><% mt('Re-enter Password') |h %></TD>
<TD>
<INPUT TYPE = "text"
NAME = "_password2"
@@ -50,7 +50,7 @@
% if ( $conf->exists('security_phrase') ) {
<TR>
- <TD ALIGN="right">Security Phrase</TD>
+ <TD ALIGN="right"><% mt('Security Phrase') |h %></TD>
<TD><INPUT TYPE="text" NAME="sec_phrase" VALUE="<% $opt{'sec_phrase'} %>">
</TD>
</TR>
@@ -62,7 +62,7 @@
<INPUT TYPE="hidden" NAME="popnum" VALUE="">
% } else {
<TR>
- <TD ALIGN="right">Access number</TD>
+ <TD ALIGN="right"><% mt('Access number') |h %></TD>
%# XXX should gain "area code" selection and labels on the dropdowns
<TD><% FS::svc_acct_pop::popselector($opt{'popnum'}) %></TD>
</TR>
@@ -72,14 +72,10 @@
<%init>
-#use FS::svc_acct_pop;
-
my( %opt ) = @_;
my $conf = new FS::Conf;
-#false laziness: (mostly) copied from edit/svc_acct.cgi
-#$ulen = $svc_acct->dbdef_table->column('username')->length;
my $ulen = dbdef->table('svc_acct')->column('username')->length;
my $ulen2 = $ulen+2;
my $passwordmax = $conf->config('passwordmax') || 8;