From 14ddc73d2c72c357bc80e40aae0c3a7538110450 Mon Sep 17 00:00:00 2001 From: mark Date: Sat, 20 Nov 2010 02:33:04 +0000 Subject: search tickets on some customer fields, RT#9328 --- .../Search/Elements/PickBasics/Default | 46 ++++++++++++++++++++++ rt/share/html/Elements/SelectCustomerAgent | 17 ++++++++ rt/share/html/Elements/SelectCustomerClass | 17 ++++++++ rt/share/html/Elements/SelectCustomerTag | 17 ++++++++ 4 files changed, 97 insertions(+) create mode 100644 rt/share/html/Callbacks/SearchCustomerFields/Search/Elements/PickBasics/Default create mode 100644 rt/share/html/Elements/SelectCustomerAgent create mode 100644 rt/share/html/Elements/SelectCustomerClass create mode 100644 rt/share/html/Elements/SelectCustomerTag (limited to 'rt/share/html') diff --git a/rt/share/html/Callbacks/SearchCustomerFields/Search/Elements/PickBasics/Default b/rt/share/html/Callbacks/SearchCustomerFields/Search/Elements/PickBasics/Default new file mode 100644 index 000000000..abbafbcf1 --- /dev/null +++ b/rt/share/html/Callbacks/SearchCustomerFields/Search/Elements/PickBasics/Default @@ -0,0 +1,46 @@ +<%init> +push @$Conditions, + { + Name => 'Agentnum', + Field => 'Agent', + Op => { + Type => 'component', + Path => '/Elements/SelectBoolean', + Arguments => { TrueVal=> '=', FalseVal => '!=' }, + }, + Value => { + Type => 'component', + Path => '/Elements/SelectCustomerAgent', + }, + }, + { + Name => 'Classnum', + Field => 'Customer Class', + Op => { + Type => 'component', + Path => '/Elements/SelectBoolean', + Arguments => { TrueVal=> '=', FalseVal => '!=' }, + }, + Value => { + Type => 'component', + Path => '/Elements/SelectCustomerClass', + }, + }, + { + Name => 'Tagnum', + Field => 'Tag', + Op => { + Type => 'component', + Path => '/Elements/SelectBoolean', + Arguments => { TrueVal=> '=', FalseVal => '!=' }, + }, + Value => { + Type => 'component', + Path => '/Elements/SelectCustomerTag', + }, + }, +; + +<%ARGS> +$Conditions => [] + diff --git a/rt/share/html/Elements/SelectCustomerAgent b/rt/share/html/Elements/SelectCustomerAgent new file mode 100644 index 000000000..75a1fba63 --- /dev/null +++ b/rt/share/html/Elements/SelectCustomerAgent @@ -0,0 +1,17 @@ +% return if ($RT::URI::freeside::IntegrationType ne 'Internal'); + +<%init> +<%args> +$ShowNullOption => 1 +$Name => undef +$Default => 0 + diff --git a/rt/share/html/Elements/SelectCustomerClass b/rt/share/html/Elements/SelectCustomerClass new file mode 100644 index 000000000..1a03cba8f --- /dev/null +++ b/rt/share/html/Elements/SelectCustomerClass @@ -0,0 +1,17 @@ +% return if ($RT::URI::freeside::IntegrationType ne 'Internal'); + +<%init> +<%args> +$ShowNullOption => 1 +$Name => undef +$Default => 0 + diff --git a/rt/share/html/Elements/SelectCustomerTag b/rt/share/html/Elements/SelectCustomerTag new file mode 100644 index 000000000..862766966 --- /dev/null +++ b/rt/share/html/Elements/SelectCustomerTag @@ -0,0 +1,17 @@ +% return if ($RT::URI::freeside::IntegrationType ne 'Internal'); + +<%init> +<%args> +$ShowNullOption => 1 +$Name => undef +$Default => 0 + -- cgit v1.2.1