summaryrefslogtreecommitdiff
path: root/httemplate/edit/allocate.html
blob: 29c16ae6a4793bb7e29025e881ad5c9e7250096e (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
<% 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,
                                   },
                                 ],
                'post_url'    => "process/addr_block/allocate.cgi",
                'popup'       => 1,
          )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

</%init>