summaryrefslogtreecommitdiff
path: root/httemplate/edit/fiber_olt.html
blob: 8cbcbb590863f4e9da7752660a6373e233ac458c (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
<& elements/edit.html,
  'popup'         => 1,
  'table'         => 'fiber_olt',
  'name_singular' => 'OLT',
  'labels'        => \%labels,
  'fields'        => \@fields,
&>
<%init>
die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my @fields = (
  'oltname',
  {
    field       => 'sitenum',
    type        => 'select-table',
    table       => 'olt_site',
    name_col    => 'description',
    order_by    => 'ORDER BY market, site',
    empty_label => ' ',
  },
  'serial',
  { field => 'disabled', type => 'checkbox', value => 'Y' }
);

my %labels = (
  'oltnum' => '',
  'oltname' => 'Name',
  'sitenum' => 'Site',
  'serial'  => 'Serial',
  'disabled' => 'Disabled',
);
</%init>