From 945bc9a8c3edf867cbaea0aa2af738d73ac180c8 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Tue, 30 Jan 2018 09:27:42 -0600 Subject: RT# 73422 Changes to report Customer Contacts --- .../elements/tr-select-multiple-contact_class.html | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 httemplate/elements/tr-select-multiple-contact_class.html (limited to 'httemplate/elements/tr-select-multiple-contact_class.html') 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. + + + +% if ($has_types) { + + <% $opt{'label'} || emt('Contact Type') %> + + <% include( '/elements/select-multiple-contact_class.html', %opt ) %> + + +% } else { + +% } + +<%init> + +my %opt = @_; +$opt{field} ||= $opt{element_name} ||= 'classnum'; + +my $has_types =()= qsearch({ + table => 'contact_class', + hashref => { disabled => '' }, + extra_sql => ' LIMIT 1 ', +}); + + -- cgit v1.2.1