Skip to content

Commit

Permalink
Merge pull request #41 from NicolasBarbey/main
Browse files Browse the repository at this point in the history
add pagination on error manager
  • Loading branch information
NicolasBarbey authored Jan 14, 2025
2 parents 092aa0b + f3ba86f commit ed2d405
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<descriptive locale="fr_FR">
<title>Gérer la réécriture d'url</title>
</descriptive>
<version>2.1.11</version>
<version>2.1.12</version>
<author>
<name>Vincent Lopes, Gilles Bourgeat, Tom Pradat</name>
<email>[email protected], [email protected], [email protected]</email>
Expand Down
16 changes: 15 additions & 1 deletion templates/backOffice/default/manage-errors-url.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
{block name="main-content"}
{$order = $smarty.get.order|default:"updated_at:asc"}
{$search = $smarty.get.search|default:null}
{$page = $smarty.get.page|default:1}
<div class="row">
<div class="col-md-12">
<div class="general-block-decorator">
Expand Down Expand Up @@ -100,7 +101,7 @@
</tr>
</thead>
<tbody>
{loop type="rewrite_url_error_url_loop" name="rewriteurl_error_url_loop" table_name="rewriteurl_error_url" orders=$order search=$search}
{loop type="rewrite_url_error_url_loop" name="rewriteurl_error_url_loop" table_name="rewriteurl_error_url" orders=$order search=$search page=$page limit=20}

{$redirect= ""}

Expand Down Expand Up @@ -143,6 +144,19 @@
</tr>
{/loop}
</tbody>
<tfoot>
<tr>
<td colspan="100">
{include
file = "includes/pagination.html"
loop_ref = "rewriteurl_error_url_loop"
max_page_count = 20
page_url = {url path="/admin/module/RewriteUrl/manageErrorUrl" order=$order search=$search}
}

</td>
</tr>
</tfoot>
</table>
</div>
</div>
Expand Down

0 comments on commit ed2d405

Please sign in to comment.