rate selection by CDR type, RT#10991
[freeside.git] / httemplate / elements / select-cdr_type.html
diff --git a/httemplate/elements/select-cdr_type.html b/httemplate/elements/select-cdr_type.html
new file mode 100644 (file)
index 0000000..9d26089
--- /dev/null
@@ -0,0 +1,11 @@
+% if ( FS::Record->scalar_sql('SELECT COUNT(*) FROM cdr_type') ) {
+<% include( '/elements/select-table.html',
+              'table'       => 'cdr_type',
+              'name_col'    => 'cdrtypenum',
+              'empty_label' => '(none)',
+              @_
+          )
+%>
+% }
+<%init>
+</%init>