1 <% include('elements/edit.html',
2 'post_url' => popurl(1).'process/router.cgi',
5 'viewall_url' => "${p}browse/router.cgi",
6 'labels' => { 'routernum' => 'Router',
7 'routername' => 'Name',
8 'svc_part' => 'Service',
11 { 'field'=>'routername', 'type'=>'text', 'size'=>32 },
12 { 'field'=>'agentnum', 'type'=>'select-agent' },
14 'error_callback' => $callback,
15 'edit_callback' => $callback,
16 'new_callback' => $callback,
21 my $curuser = $FS::CurrentUser::CurrentUser;
24 unless $curuser->access_right('Broadband configuration')
25 || $curuser->access_right('Broadband global configuration');
28 my ($cgi, $object, $fields) = (shift, shift, shift);
29 unless ($object->svcnum) {
31 { 'type' => 'tablebreak-tr-title',
32 'value' => 'Select the service types available on this router',
34 { 'field' => 'svc_part',
35 'type' => 'checkboxes-table',
36 'target_table' => 'part_svc',
37 'link_table' => 'part_svc_router',
39 'hashref' => { 'svcdb' => 'svc_broadband', 'disabled' => '' },