diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/edit/part_device.html | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/edit/part_device.html')
-rw-r--r-- | httemplate/edit/part_device.html | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/httemplate/edit/part_device.html b/httemplate/edit/part_device.html deleted file mode 100644 index 146070fd9..000000000 --- a/httemplate/edit/part_device.html +++ /dev/null @@ -1,45 +0,0 @@ -<% include( 'elements/edit.html', - 'name' => 'Phone device type', - 'table' => 'part_device', - 'labels' => { - 'devicepart' => 'Part number', - 'devicename' => 'Device name', - }, - 'viewall_dir' => 'browse', - 'html_bottom' => $html_bottom_sub, - ) -%> -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); - -my $extra_sql = - join( ' OR ', map { "exporttype = '$_'" } - keys %{FS::part_export::export_info('part_device')} - ); -$extra_sql = $extra_sql ? " WHERE ( $extra_sql ) " : " WHERE 0 = 1 "; - -my $html_bottom_sub = sub { - my $part_device = shift; - - '<BR>'. - '<FONT SIZE="+1">Exports</FONT><BR>'. - - '<TABLE BGCOLOR="#cccccc" WIDTH=100%>'. - '<TR><TD>'. - include( '/elements/checkboxes-table.html', - 'source_obj' => $part_device, - 'link_table' => 'export_device', - 'target_table' => 'part_export', - 'extra_sql' => $extra_sql, - 'name_callback' => sub { my $o = shift; - $o->exporttype. ' to '. $o->machine; - }, - ). - '</TD></TR></TABLE>'; - -}; - -</%init> - |