X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Faddr_block.cgi;h=1bbcdcbc1daf7fa6c17215c95026c82c68ac6214;hp=945f8da019e428ed69ffbc822d2563e073e13b68;hb=6873aec01740ea7c70a5e20a3f3bce6e76bca410;hpb=3e2c08dba947ea254c60cbd621776c0f5dddb2e8 diff --git a/httemplate/browse/addr_block.cgi b/httemplate/browse/addr_block.cgi index 945f8da01..1bbcdcbc1 100644 --- a/httemplate/browse/addr_block.cgi +++ b/httemplate/browse/addr_block.cgi @@ -13,6 +13,7 @@ 'Router', 'Action(s)', '', + '', ], 'fields' => [ 'NetAddr', sub { my $block = shift; @@ -26,11 +27,13 @@ }, $allocate_text, sub { shift->router ? '' : '(split)' }, + sub { '('. (shift->manual_flag ? 'allow' : 'prevent'). ' automatic ip assignment)' }, ], 'links' => [ '', '', [ 'javascript:void(0)', '' ], $split_link, + $autoassign_link, ], 'link_onclicks' => [ '', '', @@ -89,8 +92,7 @@ my $html_foot = qq( / ); $html_foot .= include( '/elements/select-agent.html', - 'agent_virt' => 1, - 'agent_null_right' => 'Broadband global configuration', + 'agent_null_right' => 'Broadband global configuration', ); $html_foot .= qq( @@ -133,4 +135,11 @@ my $split_link = sub { $ref; }; +my $autoassign_link = sub { + my $block = shift; + my $url = "$path/manual_flag.cgi?manual_flag="; + $url .= $block->manual_flag ? '' : 'Y'; + [ "$url;blocknum=", 'blocknum' ]; +}; +