From c9678906cb89a0c05a67d8118898202b64f84fd6 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 6 Oct 2011 20:44:18 +0000 Subject: add dsl_device to track mac addresses, RT#13656 --- httemplate/edit/dsl_device.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 httemplate/edit/dsl_device.html (limited to 'httemplate/edit/dsl_device.html') 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? + + + -- cgit v1.2.1