[freeside-commits] freeside/httemplate/edit/elements class_Common.html, 1.1.4.1, 1.1.4.2
Erik Levinson
levinse at wavetail.420.am
Wed Jun 22 18:56:23 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit/elements
In directory wavetail.420.am:/tmp/cvs-serv28818/httemplate/edit/elements
Modified Files:
Tag: FREESIDE_2_1_BRANCH
class_Common.html
Log Message:
add optional fcc_ds0s to pkg_class, RT13057
Index: class_Common.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/class_Common.html,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -w -d -r1.1.4.1 -r1.1.4.2
--- class_Common.html 27 Jan 2011 05:10:10 -0000 1.1.4.1
+++ class_Common.html 23 Jun 2011 01:56:21 -0000 1.1.4.2
@@ -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 @@
@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>
More information about the freeside-commits
mailing list