summaryrefslogtreecommitdiff
path: root/httemplate/edit/allocate.html
blob: 8d1347df282837eefe209ddfcb3b43905334c0ec (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
<% include('elements/edit.html',
                'name'        => 'Allocation',
                'table'       => 'addr_block',
                'labels'      => { 'NetAddr'   => 'Block',
                                   'routernum' => 'Router',
                                 },
                'fields'      => [ { 'field'         => 'NetAddr',
                                     'type'          => 'fixed',
                                   },
                                   { 'field'         => 'routernum',
                                     'type'          => 'select-table',
                                     'table'         => 'router',
                                     'name_col'      => 'routername',
                                     'disable_empty' => 1,
                                     'agent_virt'    => 1,
                                     'agent_null_right' =>
                                       'Broadband global configuration',
                                   },
                                 ],
                'post_url'    => "process/addr_block/allocate.cgi",
                'popup'       => 1,
                'agent_virt'  => 1,
                'agent_null_right' => 'Broadband global configuration',
          )
%>
<%init>

my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
  unless $curuser->access_right('Broadband configuration')
      || $curuser->access_right('Broadband global configuration');

</%init>