summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cable_device.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-05-14 00:28:55 -0700
committerIvan Kohler <ivan@freeside.biz>2013-05-14 00:28:55 -0700
commit7c301b704d8afbdac5760111d668eeda1ca40901 (patch)
tree7db4f49f9577a24fbf2d7b49987d42d75cb7d80c /httemplate/edit/process/cable_device.html
parentc1f7dc4627e48b52e059c79fcae24873bec733da (diff)
svc_cable, RT#22009
Diffstat (limited to 'httemplate/edit/process/cable_device.html')
-rw-r--r--httemplate/edit/process/cable_device.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/httemplate/edit/process/cable_device.html b/httemplate/edit/process/cable_device.html
new file mode 100644
index 000000000..97b4f81d9
--- /dev/null
+++ b/httemplate/edit/process/cable_device.html
@@ -0,0 +1,23 @@
+<% include( 'elements/process.html',
+ 'table' => 'cable_device',
+ 'redirect' => sub {
+ my( $cgi, $cable_device ) = @_;
+ #popurl(3).'view/svc_cable.html?'.
+ popurl(3).'view/svc_Common.html?svcdb=svc_cable;'.
+ 'svcnum='. $cable_device->svcnum.
+ ';devicenum=';
+ },
+ )
+%>
+<%init>
+
+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>