summaryrefslogtreecommitdiff
path: root/httemplate/edit/dsl_device.html
diff options
context:
space:
mode:
authorivan <ivan>2011-10-06 20:44:18 +0000
committerivan <ivan>2011-10-06 20:44:18 +0000
commitc9678906cb89a0c05a67d8118898202b64f84fd6 (patch)
tree3f40b30c062a7e395e1331c9263cfb45e51ea112 /httemplate/edit/dsl_device.html
parenta87829a0945ad5199b8676756c3186a7139d086d (diff)
add dsl_device to track mac addresses, RT#13656
Diffstat (limited to 'httemplate/edit/dsl_device.html')
-rw-r--r--httemplate/edit/dsl_device.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/httemplate/edit/dsl_device.html b/httemplate/edit/dsl_device.html
new file mode 100644
index 000000000..0d20fe522
--- /dev/null
+++ b/httemplate/edit/dsl_device.html
@@ -0,0 +1,31 @@
+<% include( 'elements/edit.html',
+ 'name' => 'DSL device',
+ 'table' => 'dsl_device',
+ 'labels' => {
+ 'devicenum' => 'Device',
+ 'mac_addr' => 'MAC address',
+ },
+ 'fields' => [ { field => 'mac_addr',
+ type => 'select-mac',
+ },
+ { 'field' => 'svcnum',
+ 'type' => 'hidden',
+ },
+ ],
+ 'menubar' => [], #disable viewall
+ #'viewall_dir' => 'browse',
+ 'new_callback' => sub {
+ my( $cgi, $object ) = @_;
+ $object->svcnum( $cgi->param('svcnum') );
+ },
+ )
+%>
+<%init>
+
+# :/ 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>