rt 4.2.15
[freeside.git] / rt / share / html / Search / Elements / PickBasics
index 7223b75..9f27bf3 100644 (file)
@@ -2,7 +2,7 @@
 %#
 %# COPYRIGHT:
 %#
-%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC
 %#                                          <sales@bestpractical.com>
 %#
 %# (Except where explicitly superseded by other copyright notices)
@@ -70,10 +70,10 @@ my @lines = (
             Type => 'component',
             Path => '/Elements/SelectBoolean',
             Arguments => {
-                           True => loc("matches"), 
-                           False => loc("doesn't match"), 
-                           TrueVal => 'LIKE',
-                           FalseVal => 'NOT LIKE',
+                True => loc("matches"), 
+                False => loc("doesn't match"), 
+                TrueVal => 'LIKE',
+                FalseVal => 'NOT LIKE',
             },
         },
         Value => { Type => 'text', Size => 20 },
@@ -89,7 +89,7 @@ my @lines = (
         Value => {
             Type => 'component',
             Path => '/Elements/SelectQueue',
-            Arguments => { NamedValues => 1, CheckQueueRight => 'ShowTicket' },
+            Arguments => { NamedValues => 1, },
         },
     },
     {
@@ -102,8 +102,8 @@ my @lines = (
         },
         Value => {
             Type => 'component',
-            Path => '/Elements/SelectStatus',
-            Arguments => { SkipDeleted => 1 },
+            Path => '/Ticket/Elements/SelectStatus',
+            Arguments => { SkipDeleted => 1, Queues => \%queues },
         },
     },
     {
@@ -114,6 +114,7 @@ my @lines = (
                 Owner => loc('Owner'),
                 Creator => loc('Creator'),
                 LastUpdatedBy => loc('Last updated by'),
+                UpdatedBy => loc('Updated by'),
             ],
         },
         Op => {
@@ -124,7 +125,7 @@ my @lines = (
         Value => {
             Type => 'component',
             Path => '/Elements/SelectOwner',
-            Arguments => { ValueAttribute => 'Name' },
+            Arguments => { ValueAttribute => 'Name', Queues => \%queues },
         },
     },
     {
@@ -141,6 +142,19 @@ my @lines = (
         Value => { Type => 'text', Size => 20 }
     },
     {
+        Name => 'WatcherGroup',
+        Field => {
+            Type => 'component',
+            Path => 'SelectPersonType',
+            Arguments => { Default => 'Owner', Suffix => 'Group' },
+        },
+        Op => {
+            Type => 'select',
+            Options => [ '=' => loc('is') ],
+        },
+        Value => { Type => 'text', Size => 20, "data-autocomplete" => "Groups" }
+    },
+    {
         Name => 'Date',
         Field => {
             Type => 'component',
@@ -214,3 +228,6 @@ my @lines = (
 $m->callback( Conditions => \@lines );
 
 </%INIT>
+<%ARGS>
+%queues => ()
+</%ARGS>