<% 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');