drag address and router even farther into the century
[freeside.git] / httemplate / edit / allocate.html
1 <% include('elements/edit.html',
2                 'name'        => 'Allocation',
3                 'table'       => 'addr_block',
4                 'labels'      => { 'NetAddr'   => 'Block',
5                                    'routernum' => 'Router',
6                                  },
7                 'fields'      => [ { 'field'         => 'NetAddr',
8                                      'type'          => 'fixed',
9                                    },
10                                    { 'field'         => 'routernum',
11                                      'type'          => 'select-table',
12                                      'table'         => 'router',
13                                      'name_col'      => 'routername',
14                                      'disable_empty' => 1,
15                                    },
16                                  ],
17                 'post_url'    => "process/addr_block/allocate.cgi",
18                 'popup'       => 1,
19           )
20 %>
21 <%init>
22
23 die "access denied"
24   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
25
26 </%init>