diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-24 00:39:40 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-24 00:39:40 -0800 |
commit | f3ac48703be75c0e2aec161487057eafeb8fc74f (patch) | |
tree | fd3bc7402cf055bbdccd86927532283cde51b562 /httemplate/edit/process/elements | |
parent | 960c55002469c33ea9b0a949ad473a705e1b6cf9 (diff) |
svc_pbx devices, for RT#24968
Diffstat (limited to 'httemplate/edit/process/elements')
-rw-r--r-- | httemplate/edit/process/elements/device_Common.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/httemplate/edit/process/elements/device_Common.html b/httemplate/edit/process/elements/device_Common.html new file mode 100644 index 000000000..7b6f2cd78 --- /dev/null +++ b/httemplate/edit/process/elements/device_Common.html @@ -0,0 +1,27 @@ +<& process.html, + 'redirect' => sub { + my( $cgi, $X_device ) = @_; + popurl(3)."view/$svc_table.cgi?". + 'svcnum='. $X_device->svcnum. + ';devicenum='; + }, + %opt, +&> +<%init> + +my %opt = @_; + +warn my $table = $opt{table}; +( my $svc_table = $table ) =~ s/_device//; +$svc_table = "svc_$svc_table"; + +if($cgi->param('sel_mac_addr') && !$cgi->param('mac_addr')) { + $cgi->param('mac_addr',$cgi->param('sel_mac_addr')); +} + +# :/ needs agent-virt so you can't futz with arbitrary devices + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific? + +</%init> |