From: Moritz Bunkus Date: Mon, 3 Sep 2012 14:56:52 +0000 (+0200) Subject: Paginaten für die BackgroundJob-Controller-List-View X-Git-Tag: release-3.0.0beta1~251^2~4 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=220746bf9ba8775228f1d1bd7f2e6818df8f686d;p=kivitendo-erp.git Paginaten für die BackgroundJob-Controller-List-View --- diff --git a/SL/Controller/BackgroundJob.pm b/SL/Controller/BackgroundJob.pm index dc97e1861..f80f57a1c 100644 --- a/SL/Controller/BackgroundJob.pm +++ b/SL/Controller/BackgroundJob.pm @@ -5,6 +5,7 @@ use strict; use parent qw(SL::Controller::Base); use SL::Controller::Helper::GetModels; +use SL::Controller::Helper::Paginated; use SL::Controller::Helper::Sorted; use SL::DB::BackgroundJob; use SL::Helper::Flash; @@ -20,6 +21,8 @@ __PACKAGE__->run_before('check_auth'); __PACKAGE__->run_before('check_task_server'); __PACKAGE__->run_before('load_background_job', only => [ qw(edit update destroy execute) ]); +__PACKAGE__->make_paginated(ONLY => [ qw(list) ]); + __PACKAGE__->make_sorted( ONLY => [ qw(list) ], diff --git a/SL/DB/Manager/BackgroundJob.pm b/SL/DB/Manager/BackgroundJob.pm index 1bb89ee7d..6212f9416 100644 --- a/SL/DB/Manager/BackgroundJob.pm +++ b/SL/DB/Manager/BackgroundJob.pm @@ -5,6 +5,7 @@ use strict; use SL::DB::Helper::Manager; use base qw(SL::DB::Helper::Manager); +use SL::DB::Helper::Paginated; use SL::DB::Helper::Sorted; sub object_class { 'SL::DB::BackgroundJob' } diff --git a/templates/webpages/background_job/list.html b/templates/webpages/background_job/list.html index 060c35d43..7d480472a 100644 --- a/templates/webpages/background_job/list.html +++ b/templates/webpages/background_job/list.html @@ -64,6 +64,8 @@ [%- END %] + [% L.paginate_controls %] +