SelfService: show saved searches

Consider this an early draft. Applicable against 3.6-RELEASE.
If it seems useful, but needs some improvement, just let me know.

This patch adds a tab to the Self-Service screen called “Queries”.
This Queries tab lists saved searches available to the user, if any.
Clicking on the name of a search will display a ticket list,
where each ticket links to the Self-Service page for that ticket.

This is useful if you want to give an unprivileged user the ability
to see certain tickets in which they are not the requester.
You will still need to setup appropriate RT permissions for the user.

Of course, the Self-Service user won’t be able to define any queries.
One way to handle this is to define a group for the saved search,
add yourself to the group and define a query to save to the group,
then add the Self-Service user to this same group. Now when that
user logs in, they should see the query you defined.
(Remember to give the group the ShowSavedSearches permission.)

html/SelfService/Elements/Tabs | 3 ++
html/SelfService/Query.html | 59 +++++++++++++++++++++++++++++++++++
html/SelfService/QueryList.html | 66 +++++++++++++++++++++++++++++++++++++++
3 files changed, 128 insertions(+), 0 deletions(-)

(Patch is attached)

selfservice-saved-searches.patch (4.15 KB)