TopQuickSearch: erste version
[kivitendo-erp.git] / SL / Layout / Top.pm
1 package SL::Layout::Top;
2
3 use strict;
4 use parent qw(SL::Layout::Base);
5
6 use SL::Controller::TopQuickSearch;
7
8 sub pre_content {
9   my ($self) = @_;
10
11   $self->presenter->render('menu/header',
12     now        => DateTime->now_local,
13     is_fastcgi => $::dispatcher ? scalar($::dispatcher->interface_type =~ /fastcgi/i) : 0,
14     is_links   => scalar($ENV{HTTP_USER_AGENT}         =~ /links/i),
15     quick_search => SL::Controller::TopQuickSearch->new,
16   );
17 }
18
19 sub stylesheets {
20  'frame_header/header.css';
21 }
22
23 sub javascripts {
24   'jquery-ui.js',
25   'kivi.QuickSearch.js',
26 }
27
28 1;
29
30 __END__
31
32 =encoding utf-8
33
34 =head1 NAME
35
36 SL::Layout::Top - Top line in classic and v3 menu.
37
38 =head1 DOM MODEL
39
40 The entire top line is rendered into a div with id C<frame-header>. The following classes are used:
41
42   frame-header-element: any continuous block of entries
43   frame-header-left:    the left floating part
44   frame-header-right:   the right floating part
45   frame-header-center:  the centered part
46
47 =head1 BUGS
48
49 none yet. :)
50
51 =head1 AUTHOR
52
53 Sven Schoeling E<lt>s.schoeling@linet-services.deE<gt>
54
55 =cut