[freeside-commits] freeside/httemplate/edit svc_www.cgi,1.19,1.20
Jeff Finucane,420,,
jeff at wavetail.420.am
Sat Mar 31 19:45:30 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv9667/httemplate/edit
Modified Files:
svc_www.cgi
Log Message:
quick hack to add extra 'config lines' to svc_www and otherwise enhance svc_www
Index: svc_www.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_www.cgi,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- svc_www.cgi 29 Dec 2006 08:51:32 -0000 1.19
+++ svc_www.cgi 1 Apr 2007 02:45:28 -0000 1.20
@@ -1,6 +1,6 @@
%my $conf = new FS::Conf;
%
-%my( $svcnum, $pkgnum, $svcpart, $part_svc, $svc_www );
+%my( $svcnum, $pkgnum, $svcpart, $part_svc, $svc_www, $config );
%
%if ( $cgi->param('error') ) {
%
@@ -10,6 +10,7 @@
% $svcnum = $svc_www->svcnum;
% $pkgnum = $cgi->param('pkgnum');
% $svcpart = $cgi->param('svcpart');
+% $config = $cgi->param('config');
% $part_svc=qsearchs('part_svc',{'svcpart'=>$svcpart});
% die "No part_svc entry!" unless $part_svc;
%
@@ -42,6 +43,7 @@
%
% $pkgnum=$cust_svc->pkgnum;
% $svcpart=$cust_svc->svcpart;
+% $config=$svc_www->config;
%
% $part_svc=qsearchs('part_svc',{'svcpart'=>$svcpart});
% die "No part_svc entry!" unless $part_svc;
@@ -200,6 +202,14 @@
% print "</SELECT></TD></TR>";
%}
%
+%if ( $part_svc->part_svc_column('config')->columnflag ne 'F' &&
+% $FS::CurrentUser::CurrentUser->access_right('Edit www config') ) {
+% print '<TR><TD ALIGN="right">Config lines</TD><TD>';
+% print qq!<TEXTAREA NAME="config" rows="15" cols="80">$config</TEXTAREA></TD></TR>!
+%}else{
+% print qq!<INPUT TYPE="hidden" NAME="config" VALUE="$config">!;
+%}
+%
%foreach my $field ($svc_www->virtual_fields) {
% if ( $part_svc->part_svc_column($field)->columnflag ne 'F' ) {
% # If the flag is X, it won't even show up in $svc_acct->virtual_fields.
More information about the freeside-commits
mailing list