summaryrefslogtreecommitdiff
path: root/httemplate/view/svc_fiber.cgi
blob: 80a83389062fe9a0e600ed499d02e2af8e588c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<& elements/svc_Common.html,
  'table'       => 'svc_fiber',
  'fields'      => \@fields,
  'labels'      => \%labels,
  'edit_url'    => $fsurl.'edit/svc_fiber.html?',
&>
<%init>

my @fields = (
  'circuit_id',
  { field     => 'oltnum',
    type      => 'select-table',
    table     => 'fiber_olt',
    name_col  => 'description',
  },
  'shelf',
  'card',
  'olt_port',
  'ont_id',
  'ont_description',
  'ont_serial',
  'ont_port',
  'vlan',
  'signal',
  'speed_down',
  'speed_up',
  'ont_install',
);

my $fields = FS::svc_fiber->table_info->{'fields'};
my %labels = map { $_ => $fields->{$_}{'label'} } keys %$fields;

$labels{'ont_description'} = 'ONT model';

</%init>