%= form_for '' => (class => 'pure-form') => begin <%= l('first') . ' ' . l 'page' %> <%= l('previous') . ' ' . l 'page' %>
[ %= label_for custompage => ucfirst l('page') => (style => 'display: inline') <%= number_field start => (id => 'custompage') => (size => 3) => (placeholder => $pgn->{current_page}+1) => (min => 1) => (max => $pgn->{total_pages} => (style => 'display: inline')) %> %= l 'of' %= $pgn->{total_pages} ]
% my $h = $c->req->query_params->to_hash; % while (my ($k, $v) = each %$h) { % if ($k ne 'start') { %= hidden_field $k => $v % } % } <%= l('next') . ' ' . l 'page' %> <%= l('last') . ' ' . l('page') %> % end