diff options
author | Mark Wells <mark@freeside.biz> | 2016-03-10 01:20:21 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-03-10 01:20:28 -0800 |
commit | 5c9f445b375ecf56e453de2c783f11e1c572dccb (patch) | |
tree | 6398bf386784a8bac9ff9aa677961df375762e94 /httemplate/edit/process | |
parent | 88fb68b7da3d03d2c8bbbee8f6b1b87dcb3f3246 (diff) |
add svc_fiber circuit id field, OLT sites, and other improvements, #35260
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r-- | httemplate/edit/process/olt_site.html | 4 | ||||
-rw-r--r-- | httemplate/edit/process/svc_fiber.html | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/httemplate/edit/process/olt_site.html b/httemplate/edit/process/olt_site.html new file mode 100644 index 000000000..f328cfefe --- /dev/null +++ b/httemplate/edit/process/olt_site.html @@ -0,0 +1,4 @@ +<& elements/process.html, + table => 'olt_site', + viewall_dir => 'browse', +&> diff --git a/httemplate/edit/process/svc_fiber.html b/httemplate/edit/process/svc_fiber.html index 815a8eeb8..3dabede13 100644 --- a/httemplate/edit/process/svc_fiber.html +++ b/httemplate/edit/process/svc_fiber.html @@ -2,10 +2,22 @@ table => 'svc_fiber', edit_ext => 'html', redirect => popurl(3)."view/svc_fiber.cgi?", + precheck_callback => $precheck_callback, &> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific? +my $precheck_callback = sub { + my $cgi = shift; + # recombine fdu/fat/subfat/port + my $circuit_id = $cgi->param('circuit_id_fdu') . '/' . + $cgi->param('circuit_id_fat') . $cgi->param('circuit_id_subfat') . '/' . + $cgi->param('circuit_id_port'); + $cgi->param('circuit_id', $circuit_id); + $cgi->delete(qw( circuit_id_fdu circuit_id_fat circuit_id_subfat circuit_id_port )); + ''; +}; + </%init> |