From fcf5549584b69e62b6c2f0eb919f6799c7904211 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Fri, 10 Mar 2023 13:54:57 +0100 Subject: Proper recursive rendering of mails to html 1. Added raw mode to model 2. Added raw route 3. Moved readmail view parts to RenderMail plugin 4. Renamed displayheaders partial templates --- templates/displayheaders/_pagination2.html.ep | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 templates/displayheaders/_pagination2.html.ep (limited to 'templates/displayheaders/_pagination2.html.ep') diff --git a/templates/displayheaders/_pagination2.html.ep b/templates/displayheaders/_pagination2.html.ep new file mode 100644 index 0000000..8bff0bf --- /dev/null +++ b/templates/displayheaders/_pagination2.html.ep @@ -0,0 +1,37 @@ +%= 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 -- cgit v1.2.3