svc_hardware and svc_dish, #11454
[freeside.git] / httemplate / elements / select-hardware_type.html
diff --git a/httemplate/elements/select-hardware_type.html b/httemplate/elements/select-hardware_type.html
new file mode 100644 (file)
index 0000000..ae07798
--- /dev/null
@@ -0,0 +1,14 @@
+<% include( '/elements/select-table.html',
+                 'table'         => 'hardware_type',
+                 'name_col'      => 'model',
+                 'hashref'       => $hashref,
+                 %opt,
+             )
+%>
+<%init>
+my %opt = @_;
+my $classnum = delete $opt{'classnum'};
+my $hashref = $opt{'hashref'} || {};
+$hashref->{'classnum'} = $classnum if $classnum;
+
+</%init>