X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Frouter.cgi;h=85512f8df1a2835b45c6023eb589862118f83d5f;hp=541e967ddf34ef2b6cebe1fdcaf83b7df4792139;hb=f32ac83068c6211f829f1688a1a9cdec71bc6ec7;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 diff --git a/httemplate/browse/router.cgi b/httemplate/browse/router.cgi index 541e967dd..85512f8df 100644 --- a/httemplate/browse/router.cgi +++ b/httemplate/browse/router.cgi @@ -9,15 +9,21 @@ 'count_query' => "SELECT count(*) from router $count_sql", 'header' => [ 'Router name', 'Address block(s)', + 'IP addressing', + 'Action', ], 'fields' => [ 'routername', sub { join( '
', map { $_->NetAddr } shift->addr_block ); }, + sub { shift->manual_addr ? 'Manual' : 'Automatic' }, + sub { 'Delete' }, ], 'links' => [ [ "${p2}edit/router.cgi?", 'routernum' ], '', + '', + [ "${p}misc/delete-router.html?", 'routernum' ], ], 'agent_virt' => 1, 'agent_null_right'=> "Broadband global configuration", @@ -37,11 +43,13 @@ my @menubar = ( 'Add a new router', "${p2}edit/router.cgi" ); if ($cgi->param('hidecustomerrouters') eq '1') { $extra_sql = 'WHERE svcnum > 0'; - $cgi->param('hidecustomerrouters', 0); + $cgi->delete('hidecustomerrouters'); push @menubar, 'Show customer routers', $cgi->self_url(); + $cgi->param('hidecustomerrouters', 1); } else { $cgi->param('hidecustomerrouters', 1); push @menubar, 'Hide customer routers', $cgi->self_url(); + $cgi->delete('hidecustomerrouters'); } my $count_sql = $extra_sql. ( $extra_sql =~ /WHERE/ ? ' AND' : 'WHERE' ). @@ -49,4 +57,5 @@ my $count_sql = $extra_sql. ( $extra_sql =~ /WHERE/ ? ' AND' : 'WHERE' ). 'null_right' => 'Broadband global configuration', ); +