[freeside-commits] freeside/httemplate/edit part_device.html, NONE, 1.1 phone_device.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Mon Jun 29 18:42:57 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv27146/httemplate/edit
Added Files:
part_device.html phone_device.html
Log Message:
phone devices (for netsapiens integration), RT#5226
--- NEW FILE: phone_device.html ---
<% include( 'elements/edit.html',
'name' => 'Phone device',
'table' => 'phone_device',
'labels' => {
'devicenum' => 'Device',
'devicepart' => 'Device type',
'mac_addr' => 'MAC address',
},
'fields' => [ { 'field' => 'devicepart',
'type' => 'select-table',
'table' => 'part_device',
'name_col' => 'devicename',
'empty_label' =>'Select device type',
#'hashref' =>{ disabled => '' },
},
'mac_addr',
{ '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>
--- NEW FILE: part_device.html ---
<% include( 'elements/edit.html',
'name' => 'Phone device type',
'table' => 'part_device',
'labels' => {
'devicepart' => 'Part number',
'devicename' => 'Device name',
},
'viewall_dir' => 'browse',
)
%>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
</%init>
More information about the freeside-commits
mailing list