X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpkg_class.html;h=1bc100e36016cfce7a434433c923a9b169ddc27c;hb=8c5a1df1a46121c75a829eb1d57956c9731940ab;hp=eddbfc16ea6bad8cffbd9c5346f507743cf9ad3e;hpb=0930d22ffc440f80c1b222b2e750cadbabd9e8f6;p=freeside.git diff --git a/httemplate/edit/pkg_class.html b/httemplate/edit/pkg_class.html index eddbfc16e..1bc100e36 100644 --- a/httemplate/edit/pkg_class.html +++ b/httemplate/edit/pkg_class.html @@ -1,22 +1,16 @@ -<% include( 'elements/edit.html', +<% include( 'elements/class_Common.html', 'name' => 'Package Class', 'table' => 'pkg_class', - 'fields' => [ - 'classname', - { field=>'disabled', type=>'checkbox', value=>'Y', }, - ], - 'labels' => { - 'classnum' => 'Class number', - 'classname' => 'Class name', - 'disabled' => 'Disable class', - }, - 'viewall_dir' => 'browse', - ) - + %opt, + ) %> <%init> -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +my $conf = new FS::Conf; +my %opt = (); +if($conf->exists('cust_main-require_censustract')) { + $opt{'addl_fields'} = qw( fcc_ds0s ); + $opt{'addl_labels'} = { 'fcc_ds0s' => 'FCC form 477 voice-grade equivalents' }; +}