summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorivan <ivan>2009-06-30 01:42:56 +0000
committerivan <ivan>2009-06-30 01:42:56 +0000
commit665067cef48a5516e0bfb2dd79d99b8495e25ee5 (patch)
tree40b11281ad950b57c1dc940e35a691ae62811a17 /httemplate/browse
parentf544c8f095cfb2e844810d31b6230b96033cb1e8 (diff)
phone devices (for netsapiens integration), RT#5226
Diffstat (limited to 'httemplate/browse')
-rw-r--r--httemplate/browse/part_device.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/httemplate/browse/part_device.html b/httemplate/browse/part_device.html
new file mode 100644
index 000000000..5c8fde339
--- /dev/null
+++ b/httemplate/browse/part_device.html
@@ -0,0 +1,27 @@
+<% include( 'elements/browse.html',
+ 'title' => 'Phone device types',
+ 'name' => 'phone device types',
+ 'menubar' => [ 'Add a new device type' =>
+ $p.'edit/part_device.html',
+ 'Import device types' =>
+ $p.'misc/part_device-import.html',
+ ],
+ 'query' => { 'table' => 'part_device', },
+ 'count_query' => 'SELECT COUNT(*) FROM part_device',
+ 'header' => [ '#', 'Device type' ],
+ 'fields' => [ 'devicepart',
+ 'devicename',
+ ],
+ 'links' => [ $link,
+ $link,
+ ],
+ )
+%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $link = [ "${p}edit/part_device.html?", 'devicepart' ];
+
+</%init>