X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=eg%2Fexport_template.pm;h=2c199db8526edec3715af3a807507b14fd549f5a;hp=ca58d4bed887538a5b7ddfe828f6937176785d22;hb=b0511ff939fe1622503ac8e53333fabb1ad9bd37;hpb=2a2fa626446a69e7e1a5953b8bb693b5e4274d8b diff --git a/eg/export_template.pm b/eg/export_template.pm index ca58d4bed..2c199db85 100644 --- a/eg/export_template.pm +++ b/eg/export_template.pm @@ -1,10 +1,35 @@ package FS::part_export::myexport; -use vars qw(@ISA); +use vars qw(@ISA %info); +use Tie::IxHash; use FS::part_export; @ISA = qw(FS::part_export); +tie my %options, 'Tie::IxHash', + 'regular_option' => { label => 'Option description', default => 'value' }, + 'select_option' => { label => 'Select option description', + type => 'select', options=>[qw(chocolate vanilla)], + default => 'vanilla', + }, + 'textarea_option' => { label => 'Textarea option description', + type => 'textarea', + default => 'Default text.', + }, + 'checkbox_option' => { label => 'Checkbox label', type => 'checkbox' }, +; + +%info = ( + 'svc' => 'svc_acct', + #'svc' => [qw( svc_acct svc_forward )], + 'desc' => + 'Export short description', + 'options' => \%options, + 'nodomain' => 'Y', + 'notes' => <<'END' +HTML notes about this export. +END + sub rebless { shift; } sub _export_insert {