[freeside-commits] freeside/httemplate/view/cust_main packages.html, 1.5, 1.6

Ivan,,, ivan at wavetail.420.am
Mon Jun 19 06:09:16 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail:/tmp/cvs-serv17037

Modified Files:
	packages.html 
Log Message:
fix ACL name for service provisioning and prevent disabled service provisioning from messing up table formatting

Index: packages.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- packages.html	19 Jun 2006 11:25:14 -0000	1.5
+++ packages.html	19 Jun 2006 13:09:14 -0000	1.6
@@ -333,12 +333,18 @@
 <%
       $cnt++;
     }
-    if ( $svcpart->{count} < $svcpart->{quantity} 
-         && $curuser->access_right('Provision customer services')
-       ) {
-      print qq!<TR>\n! if ($cnt > 0);
-      print qq!  <TD COLSPAN=2>!.svc_provision_link($pkg, $svcpart, $conf, $curuser).qq!</TD>\n</TR>\n!;
+    if ( $svcpart->{count} < $svcpart->{quantity} ) {
+      print '<TR>' if ($cnt > 0);
+      if ( $curuser->access_right('Provision customer service') ) {
+        print '<TD COLSPAN=2>'.
+              svc_provision_link($pkg, $svcpart, $conf, $curuser).
+              '</TD></TR>';
+      } else {
+        #print '<TD COLSPAN=2>&nbsp;</TD></TR>';
+        print '<TD COLSPAN=2></TD></TR>';
+      }
     }
+
   }
 }
 #end display packages



More information about the freeside-commits mailing list