[freeside-commits] freeside/httemplate/edit/cust_main/first_pkg select-part_pkg.html, 1.2, 1.3 svc_acct.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Fri Aug 21 17:22:10 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/first_pkg
In directory wavetail.420.am:/tmp/cvs-serv19067/httemplate/edit/cust_main/first_pkg
Modified Files:
select-part_pkg.html svc_acct.html
Log Message:
order svc_phone services from self-service too, RT#5085
Index: svc_acct.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/first_pkg/svc_acct.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- svc_acct.html 12 Apr 2009 06:09:12 -0000 1.1
+++ svc_acct.html 22 Aug 2009 00:22:08 -0000 1.2
@@ -29,14 +29,44 @@
VALUE = "<% $opt{'password'} %>"
SIZE = <% $pmax2 %>
MAXLENGTH = <% $passwordmax %>>
- (blank to generate)
+% unless ( $opt{'password_verify'} ) {
+ (blank to generate)
+% }
</TD>
</TR>
- <TR>
- <TD ALIGN="right">Access number</TD>
- <TD><% FS::svc_acct_pop::popselector($opt{'popnum'}) %></TD>
- </TR>
+% if ( $opt{'password_verify'} ) {
+ <TR>
+ <TD ALIGN="right">Re-enter Password</TD>
+ <TD>
+ <INPUT TYPE = "text"
+ NAME = "_password2"
+ VALUE = "<% $opt{'password2'} %>"
+ SIZE = <% $pmax2 %>
+ MAXLENGTH = <% $passwordmax %>>
+ </TD>
+ </TR>
+% }
+
+% if ( $conf->exists('security_phrase') ) {
+ <TR>
+ <TD ALIGN="right">Security Phrase</TD>
+ <TD><INPUT TYPE="text" NAME="sec_phrase" VALUE="<% $opt{'sec_phrase'} %>">
+ </TD>
+ </TR>
+% } else {
+ <INPUT TYPE="hidden" NAME="sec_phrase" VALUE="">
+% }
+
+% if ( $conf->exists('svc_acct-disable_access_number') ) {
+ <INPUT TYPE="hidden" NAME="popnum" VALUE="">
+% } else {
+ <TR>
+ <TD ALIGN="right">Access number</TD>
+%# XXX should gain "area code" selection and labels on the dropdowns
+ <TD><% FS::svc_acct_pop::popselector($opt{'popnum'}) %></TD>
+ </TR>
+% }
</TABLE>
Index: select-part_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/first_pkg/select-part_pkg.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- select-part_pkg.html 21 Jun 2009 15:21:31 -0000 1.2
+++ select-part_pkg.html 22 Aug 2009 00:22:08 -0000 1.3
@@ -1,15 +1,17 @@
<% include('/elements/xmlhttp.html',
- 'url' => $p.'misc/svc_acct-domains.cgi',
+ 'url' => $url_prefix.'misc/svc_acct-domains.cgi',
'subs' => [ $opt{'prefix'}. 'get_domains' ],
)
%>
<% include('/elements/xmlhttp.html',
- 'url' => $p.'misc/part_svc-columns.cgi',
+ 'url' => $url_prefix.'misc/part_svc-columns.cgi',
'subs' => [ $opt{'prefix'}. 'get_part_svc' ],
)
%>
+<INPUT TYPE="hidden" NAME="svcdb" VALUE="">
+
<SCRIPT TYPE="text/javascript">
function selopt(what,value,text,selected) {
@@ -27,10 +29,14 @@
function <% $opt{'prefix'} %>pkgpart_svcpart_changed_too(what,selected) {
+ <% $opt{'onchange'} %>;
+
pkgpart_svcpart = what.options[what.selectedIndex].value;
var svcdb = pkgpart_svcpart2svcdb[pkgpart_svcpart];
+ what.form.svcdb.value = svcdb;
+
if ( svcdb == 'svc_acct' ) {
// go get the new domains
@@ -124,6 +130,8 @@
}
$opt{saved_domsvc} = 0 unless $opt{saved_domsvc};
+my $url_prefix = $opt{'relurls'} ? '' : $p;
+
my @part_pkg = @{$opt{'part_pkg'}};
my @first_svc = ( 'svc_acct', 'svc_phone' );
@@ -140,7 +148,7 @@
}
my @options = ( '', map $pkgpart_svcpart{ $_->pkgpart }, @part_pkg );
-my %labels = ( '' => '(none)',
+my %labels = ( '' => ( $opt{'empty_label'} || '(none)' ),
map { $pkgpart_svcpart{ $_->pkgpart } => $_->pkg_comment }
@part_pkg
);
More information about the freeside-commits
mailing list