summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-multiple-contact_class.html
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-01-30 09:27:42 -0600
committerMitch Jackson <mitch@freeside.biz>2018-01-30 09:27:42 -0600
commite803d5f00368e951f7a4b82d5d390b53c4a6c827 (patch)
treed2bb3cc8fffce64747f43ce3b8ca763fea3d3633 /httemplate/elements/tr-select-multiple-contact_class.html
parent280c44682a79e586af941e869e7a78ca8f367cf2 (diff)
RT# 73422 Changes to report Customer Contacts
Diffstat (limited to 'httemplate/elements/tr-select-multiple-contact_class.html')
-rw-r--r--httemplate/elements/tr-select-multiple-contact_class.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-multiple-contact_class.html b/httemplate/elements/tr-select-multiple-contact_class.html
new file mode 100644
index 000000000..5de129324
--- /dev/null
+++ b/httemplate/elements/tr-select-multiple-contact_class.html
@@ -0,0 +1,32 @@
+<%doc>
+
+ Displays Contact Types as a multi-select box.
+
+ If no non-disabled Contact Types have been defined in contact_class table,
+ renders a hidden input field with a blank value.
+
+</%doc>
+
+% if ($has_types) {
+<TR>
+ <TD ALIGN="right"><% $opt{'label'} || emt('Contact Type') %></TD>
+ <TD>
+ <% include( '/elements/select-multiple-contact_class.html', %opt ) %>
+ </TD>
+</TR>
+% } else {
+<INPUT TYPE="hidden" NAME="<% $opt{field} %>" VALUE="">
+% }
+
+<%init>
+
+my %opt = @_;
+$opt{field} ||= $opt{element_name} ||= 'classnum';
+
+my $has_types =()= qsearch({
+ table => 'contact_class',
+ hashref => { disabled => '' },
+ extra_sql => ' LIMIT 1 ',
+});
+
+</%init>