[freeside-commits] freeside/httemplate/browse addr_block.cgi, 1.10, 1.11
Jeff Finucane,420,,
jeff at wavetail.420.am
Fri Sep 26 20:01:46 PDT 2008
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.243, 1.244 Schema.pm, 1.110, 1.111 addr_block.pm, 1.9, 1.10 svc_broadband.pm, 1.15, 1.16
- Next message: [freeside-commits] freeside/httemplate/edit svc_broadband.cgi, 1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv7676/httemplate/browse
Modified Files:
addr_block.cgi
Log Message:
per address block ip auto assignment and auto router selection
Index: addr_block.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/addr_block.cgi,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- addr_block.cgi 3 Sep 2008 19:08:27 -0000 1.10
+++ addr_block.cgi 27 Sep 2008 03:01:43 -0000 1.11
@@ -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 @@
$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>
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.243, 1.244 Schema.pm, 1.110, 1.111 addr_block.pm, 1.9, 1.10 svc_broadband.pm, 1.15, 1.16
- Next message: [freeside-commits] freeside/httemplate/edit svc_broadband.cgi, 1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list