[freeside-commits] freeside/httemplate/edit pkg_class.html, 1.6, 1.7 cust_class.html, NONE, 1.1 cust_category.html, NONE, 1.1 pkg_category.html, 1.2, 1.3

Ivan,,, ivan at wavetail.420.am
Wed Oct 28 18:08:35 PDT 2009


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv30787/httemplate/edit

Modified Files:
	pkg_class.html pkg_category.html 
Added Files:
	cust_class.html cust_category.html 
Log Message:
customer classification, RT#6376

--- NEW FILE: cust_category.html ---
<% include( 'elements/category_Common.html',
              'name'   => 'Customer Category',
              'table'  => 'cust_category',
          )
%>

Index: pkg_class.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/pkg_class.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- pkg_class.html	1 Aug 2008 20:21:02 -0000	1.6
+++ pkg_class.html	29 Oct 2009 01:08:33 -0000	1.7
@@ -1,28 +1,5 @@
-<% include( 'elements/edit.html',
+<% include( 'elements/class_Common.html',
               'name'   => 'Package Class',
               'table'  => 'pkg_class',
-              'fields' => [
-                            'classname',
-                            (scalar(@category)
-                              ? { field=>'categorynum', type=>'select-table', 'empty_label'=>'(none)', 'table'=>'pkg_category', 'name_col'=>'categoryname' }
-                              : { field=>'categorynum', type=>'hidden' }
-                            ),
-                            { field=>'disabled', type=>'checkbox', value=>'Y', },
-                          ],
-              'labels' => { 
-                            'classnum'    => 'Class number',
-                            'classname'   => 'Class name',
-                            'categorynum' => 'Category',
-                            'disabled'    => 'Disable class',
-                          },
-              'viewall_dir' => 'browse',
-           )
-          
+          )
 %>
-<%init>
-
-die "access denied"
-  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-
-my @category = qsearch('pkg_category', { 'disabled' => '' });
-</%init>

--- NEW FILE: cust_class.html ---
<% include( 'elements/class_Common.html',
              'name'   => 'Customer Class',
              'table'  => 'cust_class',
          )
%>

Index: pkg_category.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/pkg_category.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pkg_category.html	5 Oct 2009 00:49:34 -0000	1.2
+++ pkg_category.html	29 Oct 2009 01:08:33 -0000	1.3
@@ -1,24 +1,5 @@
-<% include( 'elements/edit.html',
+<% include( 'elements/category_Common.html',
               'name'   => 'Package Category',
               'table'  => 'pkg_category',
-              'fields' => [
-                            'categoryname',
-                            'weight',
-                            { field=>'disabled', type=>'checkbox', value=>'Y', },
-                          ],
-              'labels' => { 
-                            'categorynum'  => 'Category number',
-                            'categoryname' => 'Category name',
-                            'weight'       => 'Weight',
-                            'disabled'  => 'Disable category',
-                          },
-              'viewall_dir' => 'browse',
-           )
-          
+          )
 %>
-<%init>
-
-die "access denied"
-  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-
-</%init>



More information about the freeside-commits mailing list