projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to compensate for changes in r8593,
[freeside.git]
/
httemplate
/
browse
/
addr_block.cgi
diff --git
a/httemplate/browse/addr_block.cgi
b/httemplate/browse/addr_block.cgi
index
917f94c
..
1bbcdcb
100644
(file)
--- a/
httemplate/browse/addr_block.cgi
+++ b/
httemplate/browse/addr_block.cgi
@@
-13,6
+13,7
@@
'Router',
'Action(s)',
'',
'Router',
'Action(s)',
'',
+ '',
],
'fields' => [ 'NetAddr',
sub { my $block = shift;
],
'fields' => [ 'NetAddr',
sub { my $block = shift;
@@
-26,11
+27,13
@@
},
$allocate_text,
sub { shift->router ? '' : '<FONT SIZE="-2">(split)</FONT>' },
},
$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,
],
'links' => [ '',
'',
[ 'javascript:void(0)', '' ],
$split_link,
+ $autoassign_link,
],
'link_onclicks' => [ '',
'',
],
'link_onclicks' => [ '',
'',
@@
-43,15
+46,15
@@
'border-left:none;',
],
'agent_virt' => 1,
'border-left:none;',
],
'agent_virt' => 1,
- 'agent_null_right' => '
Engineering
global configuration',
+ 'agent_null_right' => '
Broadband
global configuration',
'agent_pos' => 1,
)
%>
<%init>
die "access denied"
'agent_pos' => 1,
)
%>
<%init>
die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('
Engineering
configuration')
- || $FS::CurrentUser::CurrentUser->access_right('
Engineering
global configuration');
+ unless $FS::CurrentUser::CurrentUser->access_right('
Broadband
configuration')
+ || $FS::CurrentUser::CurrentUser->access_right('
Broadband
global configuration');
my $p2 = popurl(2);
my $path = $p2 . "edit/process/addr_block";
my $p2 = popurl(2);
my $path = $p2 . "edit/process/addr_block";
@@
-59,7
+62,7
@@
my $path = $p2 . "edit/process/addr_block";
my $extra_sql = "";
my $count_sql = "WHERE ". $FS::CurrentUser::CurrentUser->agentnums_sql(
my $extra_sql = "";
my $count_sql = "WHERE ". $FS::CurrentUser::CurrentUser->agentnums_sql(
- 'null_right' => '
Engineering
global configuration',
+ 'null_right' => '
Broadband
global configuration',
);
my $order_by = "ORDER BY ";
);
my $order_by = "ORDER BY ";
@@
-89,8
+92,7
@@
my $html_foot = qq(
<INPUT TYPE="text" NAME="ip_gateway" SIZE="15">/<INPUT TYPE="text" NAME="ip_netmask" SIZE="2">
);
$html_foot .= include( '/elements/select-agent.html',
<INPUT TYPE="text" NAME="ip_gateway" SIZE="15">/<INPUT TYPE="text" NAME="ip_netmask" SIZE="2">
);
$html_foot .= include( '/elements/select-agent.html',
- 'agent_virt' => 1,
- 'agent_null_right' => 'Engineering global configuration',
+ 'agent_null_right' => 'Broadband global configuration',
);
$html_foot .= qq(
<INPUT TYPE="submit" NAME="submit" VALUE="Add">
);
$html_foot .= qq(
<INPUT TYPE="submit" NAME="submit" VALUE="Add">
@@
-133,4
+135,11
@@
my $split_link = sub {
$ref;
};
$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>
</%init>