diff options
author | jeff <jeff> | 2008-09-27 03:01:44 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-09-27 03:01:44 +0000 |
commit | 4b5d4c82766ef1869d03df63fa1e2f0dd050cb6a (patch) | |
tree | c5c814482090bb5e0799db17940250d700857c05 /httemplate/browse/addr_block.cgi | |
parent | f411189684b0ca7cc1b4b3e9be1895607245b595 (diff) |
per address block ip auto assignment and auto router selection
Diffstat (limited to 'httemplate/browse/addr_block.cgi')
-rw-r--r-- | httemplate/browse/addr_block.cgi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/browse/addr_block.cgi b/httemplate/browse/addr_block.cgi index 945f8da01..241bb937f 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 ? '' : '<FONT SIZE="-2">(split)</FONT>' }, + sub { '<FONT SIZE="-2">('. (shift->manual_flag ? 'allow' : 'prevent'). ' automatic ip assignment)</FONT>' }, ], 'links' => [ '', '', [ 'javascript:void(0)', '' ], $split_link, + $autoassign_link, ], 'link_onclicks' => [ '', '', @@ -133,4 +136,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' ]; +}; + </%init> |