projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lock down manual batch approval
[freeside.git]
/
httemplate
/
edit
/
router.cgi
diff --git
a/httemplate/edit/router.cgi
b/httemplate/edit/router.cgi
index
180dcb7
..
70eaa45
100755
(executable)
--- a/
httemplate/edit/router.cgi
+++ b/
httemplate/edit/router.cgi
@@
-10,10
+10,12
@@
'fields' => [
{ 'field'=>'routername', 'type'=>'text', 'size'=>32 },
{ 'field'=>'agentnum', 'type'=>'select-agent' },
'fields' => [
{ 'field'=>'routername', 'type'=>'text', 'size'=>32 },
{ 'field'=>'agentnum', 'type'=>'select-agent' },
+ { 'field'=>'svcnum', 'type'=>'hidden' },
],
'error_callback' => $callback,
'edit_callback' => $callback,
'new_callback' => $callback,
],
'error_callback' => $callback,
'edit_callback' => $callback,
'new_callback' => $callback,
+ 'html_table_bottom' => $html_table_bottom,
)
%>
<%init>
)
%>
<%init>
@@
-21,8
+23,8
@@
my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
- unless $curuser->access_right('
Engineering
configuration')
- || $curuser->access_right('
Engineering
global configuration');
+ unless $curuser->access_right('
Broadband
configuration')
+ || $curuser->access_right('
Broadband
global configuration');
my $callback = sub {
my ($cgi, $object, $fields) = (shift, shift, shift);
my $callback = sub {
my ($cgi, $object, $fields) = (shift, shift, shift);
@@
-41,4
+43,12
@@
my $callback = sub {
}
};
}
};
+my $html_table_bottom = sub {
+ my $router = shift;
+ my $html = '';
+ foreach my $field ($router->virtual_fields) {
+ $html .= $router->pvf($field)->widget('HTML', 'edit', $router->get($field));
+ }
+ $html;
+};
</%init>
</%init>