%= form_for '' => (class => 'pure-form') => begin <%= l('first') . ' ' . l 'page' %> <%= l('previous') . ' ' . l 'page' %> [ %= 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 % } % } <%= l('next') . ' ' . l 'page' %> <%= l('last') . ' ' . l('page') %> % end