[freeside-commits] freeside/httemplate/edit pkg_class.html, NONE, 1.1 inventory_class.html, 1.1, 1.2 part_pkg.cgi, 1.59, 1.60

Ivan,,, ivan at wavetail.420.am
Fri Apr 21 17:58:41 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv26322/httemplate/edit

Modified Files:
	inventory_class.html part_pkg.cgi 
Added Files:
	pkg_class.html 
Log Message:
start of package class web UI (add/edit package classes, package class selection in package def edit)

Index: inventory_class.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/inventory_class.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- inventory_class.html	8 Mar 2006 10:05:01 -0000	1.1
+++ inventory_class.html	22 Apr 2006 00:58:39 -0000	1.2
@@ -5,5 +5,6 @@
                                'classnum'  => 'Class number',
                                'classname' => 'Class name',
                              },
+                 'viewall_dir' => 'browse',
            )
 %>

Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_pkg.cgi,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- part_pkg.cgi	20 Mar 2006 19:13:26 -0000	1.59
+++ part_pkg.cgi	22 Apr 2006 00:58:39 -0000	1.60
@@ -84,6 +84,7 @@
       <INPUT TYPE="text" NAME="comment" SIZE=32 VALUE="<%=$part_pkg->comment%>">
     </TD>
   </TR>
+  <%= include( '/elements/tr-select-pkg_class.html', $part_pkg->classnum ) %>
   <TR>
     <TD ALIGN="right">Promotional code</TD>
     <TD>
@@ -146,8 +147,8 @@
 
 %>
 
-<%= itable('', 4, 1) %><TR><TD VALIGN="top">
 <BR><BR>Services included
+<%= itable('', 4, 1) %><TR><TD VALIGN="top">
 <%= $thead %>
 
 <%
@@ -194,14 +195,14 @@
     </TD>
   </TR>
 
-  <% $count++;
-     foreach ( 1 .. $columns-1 ) {
+  <% foreach ( 1 .. $columns-1 ) {
        if ( $count == int( $_ * scalar(@part_svc) / $columns ) ) { 
   %>
          </TABLE></TD><TD VALIGN="top"><%= $thead %>
 
   <%   }
      }
+     $count++;
   %>
 
 <% } %>
@@ -224,7 +225,7 @@
 
 tie my %options, 'Tie::IxHash', map { $_=>$plans{$_}->{'name'} } keys %plans;
 
-my @form_select = ();
+my @form_select = ('classnum');
 if ( $conf->exists('enable_taxclasses') ) {
   push @form_select, 'taxclass';
 } else {

--- NEW FILE: pkg_class.html ---
<%= include( 'elements/edit.html',
                 'name'   => 'Package Class',
                 'table'  => 'pkg_class',
                 'labels' => { 
                               'classnum'  => 'Class number',
                               'classname' => 'Class name',
                             },
                 'viewall_dir' => 'browse',
           )
%>



More information about the freeside-commits mailing list