Revision 0ebb8f82
Von Moritz Bunkus vor mehr als 5 Jahren hinzugefügt
SL/Controller/Project.pm | ||
---|---|---|
41 | 41 |
# actions |
42 | 42 |
# |
43 | 43 |
|
44 |
sub action_search { |
|
45 |
my ($self) = @_; |
|
46 |
|
|
47 |
my %params; |
|
48 |
|
|
49 |
$params{CUSTOM_VARIABLES} = CVar->get_configs(module => 'Projects'); |
|
50 |
|
|
51 |
($params{CUSTOM_VARIABLES_FILTER_CODE}, $params{CUSTOM_VARIABLES_INCLUSION_CODE}) |
|
52 |
= CVar->render_search_options(variables => $params{CUSTOM_VARIABLES}, |
|
53 |
include_prefix => 'l_', |
|
54 |
include_value => 'Y'); |
|
55 |
|
|
56 |
$self->setup_search_action_bar; |
|
57 |
|
|
58 |
$self->render('project/search', %params); |
|
59 |
} |
|
60 |
|
|
61 | 44 |
sub action_list { |
62 | 45 |
my ($self) = @_; |
63 | 46 |
|
64 |
$self->setup_search_action_bar;
|
|
47 |
$self->setup_list_action_bar;
|
|
65 | 48 |
|
66 | 49 |
$self->make_filter_summary; |
67 | 50 |
|
... | ... | |
430 | 413 |
} |
431 | 414 |
} |
432 | 415 |
|
433 |
sub setup_search_action_bar {
|
|
416 |
sub setup_list_action_bar {
|
|
434 | 417 |
my ($self, %params) = @_; |
435 | 418 |
|
436 | 419 |
for my $bar ($::request->layout->get('actionbar')) { |
locale/de/all | ||
---|---|---|
2772 | 2772 |
'Search AR Aging' => 'Offene Forderungen', |
2773 | 2773 |
'Search bank transactions' => 'Filter für Bankbuchungen', |
2774 | 2774 |
'Search contacts' => 'Personensuche', |
2775 |
'Search projects' => 'Projektsuche', |
|
2776 | 2775 |
'Search term' => 'Suchbegriff', |
2777 | 2776 |
'Searchable' => 'Durchsuchbar', |
2778 | 2777 |
'Secondary sorting' => 'Untersortierung', |
templates/webpages/project/search.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- USE L %] |
|
4 |
[%- USE LxERP %] |
|
5 |
<h1>[% 'Search projects' | $T8 %]</h1> |
|
6 |
|
|
7 |
[%- INCLUDE 'common/flash.html' %] |
|
8 |
|
|
9 |
<form method="post" action="controller.pl" id="search_form"> |
|
10 |
|
|
11 |
<p> |
|
12 |
[%- INCLUDE 'project/_filter.html' %] |
|
13 |
</p> |
|
14 |
</form> |
Auch abrufbar als: Unified diff
Projekte: alte Suchmaske entfernt