From: Sven Schöling Date: Tue, 4 Jun 2013 17:04:50 +0000 (+0200) Subject: Möglichkeit die Paginating Links auf ein DOM Element zu senden X-Git-Tag: release-3.1.0beta1~362 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=43bcf835ebe883d3ba2e9bf23b7ca3d2bb215e9c;p=kivitendo-erp.git Möglichkeit die Paginating Links auf ein DOM Element zu senden --- diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 3e157a366..ff507d107 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -468,7 +468,7 @@ sub sortable_table_header { } sub paginate_controls { - my ($self) = @_; + my ($self, %params) = _hashify(1, @_); my $controller = $self->{CONTEXT}->stash->get('SELF'); my $paginate_spec = $controller->get_paginate_spec; @@ -483,6 +483,7 @@ sub paginate_controls { return $controller->get_callback(%url_params); }, + %params, ); return SL::Presenter->get->render('common/paginate', %template_params); diff --git a/templates/webpages/common/paginate.html b/templates/webpages/common/paginate.html index c833904b8..28cd8ca2a 100644 --- a/templates/webpages/common/paginate.html +++ b/templates/webpages/common/paginate.html @@ -8,11 +8,29 @@ [%- END %] [%- IF pages.max > 1 %]
-[%- IF pages.page > 1 %]« [% 'prev' | $T8 %] [% ELSE %]« [% END %] +[%- IF pages.page > 1 %]« [% 'prev' | $T8 %] [% ELSE %]« [% END %] [%- FOR p = pages.common %] [%- NEXT UNLESS p.visible %] - [%- IF p.active %][% p.page %] [% ELSE %][% p.page %] [%- END %] + [%- IF p.active %][% p.page %] [% ELSE %][% p.page %] [%- END %] [%- END %] -[%- IF pages.page < pages.max %][% 'next' | $T8 %] »[% ELSE %]»[%- END %] +[%- IF pages.page < pages.max %][% 'next' | $T8 %] »[% ELSE %]»[%- END %]
[%- END %] +[%- IF target %] + +[%- END %]