From 72ae9b3f63ddbe296f3e4e8f8db2d29303163d68 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sun, 1 May 2022 22:06:03 +0200 Subject: use more tag helpers in templates --- templates/_pagination2.html.ep | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'templates/_pagination2.html.ep') diff --git a/templates/_pagination2.html.ep b/templates/_pagination2.html.ep index f838841..e03dbb0 100644 --- a/templates/_pagination2.html.ep +++ b/templates/_pagination2.html.ep @@ -1,19 +1,22 @@ <%= l('first') . ' ' . l 'page' %>\ - <%= l('previous') . ' ' . l 'page' %> \ + <%= l('previous') . ' ' . l 'page' %> -
- [ - - <%= l 'of' %> <%= $total_pages %>] +%= form_for '' => begin + [ + %= label_for custompage => ucfirst l 'page' + %= number_field start => (id => 'custompage') => (size => 3) => (placeholder => $current_page) + %= l 'of' + %= $total_pages + ] % my $h = $c->req->query_params->to_hash; % while (my ($k, $v) = each %$h) { % if ($k ne 'start') { - + %= hidden_field $k => $v % } % } -
\ +% end <%= l('next') . ' ' . l 'page' %> \ - <%= l('last') . ' ' . l('page') %> \ No newline at end of file + <%= l('last') . ' ' . l('page') %> -- cgit v1.2.3