add optional fcc_ds0s to pkg_class, RT13057
[freeside.git] / httemplate / edit / elements / class_Common.html
index e6334fe..69da4db 100644 (file)
@@ -1,17 +1,11 @@
 <% include( 'edit.html',
-              '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', },
-                          ],
+              'fields' => $fields,
               'labels' => { 
                             'classnum'    => 'Class number',
                             'classname'   => 'Class name',
                             'categorynum' => 'Category',
                             'disabled'    => 'Disable class',
+                            %addl_labels,
                           },
               'viewall_dir' => 'browse',
               %opt,
@@ -33,4 +27,16 @@ unless ( $opt{'nocat'} ) {
     @category = qsearch($category_table, { 'disabled' => '' });
 }
 
+my $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', },
+        ];
+push @$fields, $opt{'addl_fields'} if $opt{'addl_fields'};
+
+my %addl_labels = ();
+%addl_labels = %{$opt{'addl_labels'}} if $opt{'addl_labels'};
+
 </%init>