show imported region and rate #s, RT#83146
[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                                      'agent_virt'    => 1,
16                                      'agent_null_right' =>
17                                        'Broadband global configuration',
18                                    },
19                                  ],
20                 'post_url'    => "process/addr_block/allocate.cgi",
21                 'popup'       => 1,
22                 'agent_virt'  => 1,
23                 'agent_null_right' => 'Broadband global configuration',
24           )
25 %>
26 <%init>
27
28 my $curuser = $FS::CurrentUser::CurrentUser;
29 die "access denied"
30   unless $curuser->access_right('Broadband configuration')
31       || $curuser->access_right('Broadband global configuration');
32
33 </%init>