Projekte: alte Suchmaske entfernt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 25 Mar 2019 14:51:12 +0000 (15:51 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 25 Mar 2019 16:13:32 +0000 (17:13 +0100)
SL/Controller/Project.pm
locale/de/all
templates/webpages/project/search.html [deleted file]

index 11cdd9c..66f2287 100644 (file)
@@ -41,27 +41,10 @@ __PACKAGE__->run_before('use_multiselect_js', only => [ qw(new create edit updat
 # actions
 #
 
-sub action_search {
-  my ($self) = @_;
-
-  my %params;
-
-  $params{CUSTOM_VARIABLES}  = CVar->get_configs(module => 'Projects');
-
-  ($params{CUSTOM_VARIABLES_FILTER_CODE}, $params{CUSTOM_VARIABLES_INCLUSION_CODE})
-    = CVar->render_search_options(variables      => $params{CUSTOM_VARIABLES},
-                                  include_prefix => 'l_',
-                                  include_value  => 'Y');
-
-  $self->setup_search_action_bar;
-
-  $self->render('project/search', %params);
-}
-
 sub action_list {
   my ($self) = @_;
 
-  $self->setup_search_action_bar;
+  $self->setup_list_action_bar;
 
   $self->make_filter_summary;
 
@@ -430,7 +413,7 @@ sub setup_edit_action_bar {
   }
 }
 
-sub setup_search_action_bar {
+sub setup_list_action_bar {
   my ($self, %params) = @_;
 
   for my $bar ($::request->layout->get('actionbar')) {
index f1dd92b..fee2ce4 100755 (executable)
@@ -2772,7 +2772,6 @@ $self->{texts} = {
   'Search AR Aging'             => 'Offene Forderungen',
   'Search bank transactions'    => 'Filter für Bankbuchungen',
   'Search contacts'             => 'Personensuche',
-  'Search projects'             => 'Projektsuche',
   'Search term'                 => 'Suchbegriff',
   'Searchable'                  => 'Durchsuchbar',
   'Secondary sorting'           => 'Untersortierung',
diff --git a/templates/webpages/project/search.html b/templates/webpages/project/search.html
deleted file mode 100644 (file)
index d2adb58..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[%- USE T8 %]
-[%- USE HTML %]
-[%- USE L %]
-[%- USE LxERP %]
-<h1>[% 'Search projects' | $T8 %]</h1>
-
-[%- INCLUDE 'common/flash.html' %]
-
- <form method="post" action="controller.pl" id="search_form">
-
-  <p>
-[%- INCLUDE 'project/_filter.html' %]
-  </p>
- </form>