don't query broadband exports about non-broadband services, and other fixes, #73049
[freeside.git] / httemplate / edit / svc_circuit.html
1 <& elements/svc_Common.html,
2               'table'              => 'svc_circuit',
3               'fields'             => \@fields,
4 &>
5 <%init>
6
7 die "access denied"
8   unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
9
10 my $conf = new FS::Conf;
11 my $date_format = $conf->config('date_format') || '%m/%d/%Y';
12
13 my @fields = (
14   { field         => 'providernum',
15     type          => 'select-table',
16     table         => 'circuit_provider',
17     name_col      => 'provider',
18     disable_empty => 1,
19   },
20   { field         => 'typenum',
21     type          => 'select-table',
22     table         => 'circuit_type',
23     name_col      => 'typename',
24     disable_empty => 1,
25   },
26   { field         => 'termnum',
27     type          => 'select-table',
28     table         => 'circuit_termination',
29     name_col      => 'termination',
30     disable_empty => 1,
31   },
32   { field         => 'circuit_id',
33     size          => 40,
34   },
35   { field         => 'desired_due_date',
36     type          => 'input-date-field',
37   },
38   { field         => 'due_date',
39     type          => 'input-date-field',
40   },
41   'vendor_order_id',
42   'vendor_qual_id',
43   'vendor_order_status',
44   'endpoint_ip_addr',
45   { field         => 'endpoint_mac_addr',
46     type          => 'input-mac_addr',
47   },
48 );
49
50 # needed: a new_callback to migrate vendor quals over to circuits
51
52 #my ($svc_new_callback, $svc_edit_callback, $svc_error_callback);
53
54 </%init>