From a6e6f8be88a93699765f25aee0e6109a3eb0b307 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Tue, 3 May 2022 18:22:43 +0200 Subject: reworked templates based on purecss --- templates/headers/_pagination2.html.ep | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 templates/headers/_pagination2.html.ep (limited to 'templates/headers/_pagination2.html.ep') diff --git a/templates/headers/_pagination2.html.ep b/templates/headers/_pagination2.html.ep new file mode 100644 index 0000000..236e9bb --- /dev/null +++ b/templates/headers/_pagination2.html.ep @@ -0,0 +1,22 @@ +
+ %= 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 +
-- cgit v1.2.3