From 483a2e4dad0f7ce8dbdc06a825d1aa11bd742f6b Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 25 Mar 2010 20:21:51 +0000 Subject: when using a side menubar, put search boxes on the side too --- httemplate/elements/searchbar-prospect.html | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 httemplate/elements/searchbar-prospect.html (limited to 'httemplate/elements/searchbar-prospect.html') diff --git a/httemplate/elements/searchbar-prospect.html b/httemplate/elements/searchbar-prospect.html new file mode 100644 index 000000000..68b90d4e3 --- /dev/null +++ b/httemplate/elements/searchbar-prospect.html @@ -0,0 +1,33 @@ +% if ( $curuser->access_right('List prospects') ) { + +
+
+ Adv + +
+ <% $menu_position eq 'left' ? '
' : '' %> + +% } + + +<%once> + +my $prospect_label = '(name, company or phone)'; + + +<%init> + +my $curuser = $FS::CurrentUser::CurrentUser; + +my $menu_position = $curuser->option('menu_position') || 'top'; + +my $width = $menu_position eq 'left' ? '190px' : '155px'; + + -- cgit v1.2.1