From 68fcc90d8e95f1efe0efe07b2f59e5fab2d8c535 Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 27 Apr 2011 08:31:03 +0000 Subject: RT mobile UI, #11630 --- httemplate/elements/searchbar-combined.html | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 httemplate/elements/searchbar-combined.html (limited to 'httemplate/elements/searchbar-combined.html') diff --git a/httemplate/elements/searchbar-combined.html b/httemplate/elements/searchbar-combined.html new file mode 100644 index 000000000..20425cde9 --- /dev/null +++ b/httemplate/elements/searchbar-combined.html @@ -0,0 +1,51 @@ +
+Search +
+ + + + +
+
+<%init> +my $curuser = $FS::CurrentUser::CurrentUser; +my @searches = (); +push @searches, 'customers' if $curuser->access_right('List customers'); +push @searches, 'prospects' if $curuser->access_right('List prospects'); +push @searches, 'invoices' if $curuser->access_right('View invoices'); +push @searches, 'services' if $curuser->access_right('View customer services'); +push @searches, 'tickets' if FS::Conf->new->exists('ticket_system'); + +my %hints = ( + 'customers' => '(cust #, name, company)', + 'prospects' => '(name, company, phone)', + 'invoices' => '(invoice #)', + 'services' => '(user, email, phone...)', + 'tickets' => '(ticket #, subject, email)', +); + + -- cgit v1.2.1