fix: update vendor templates to use simplified pagination macro

The pagination macro was updated to use a simplified API that only
accepts show_condition. Updated 4 vendor templates:
- products.html
- orders.html
- inventory.html
- customers.html

The macro now relies on standardized Alpine.js component properties
(pagination.page, totalPages, pageNumbers, etc.) instead of passing
them as macro arguments.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-02 22:31:00 +01:00
parent 34d115dc58
commit 842aa983e1
4 changed files with 4 additions and 52 deletions

View File

@@ -175,19 +175,7 @@
</div>
<!-- Pagination -->
<div x-show="!loading && pagination.total > 0" class="mb-8">
{{ pagination(
current_page='pagination.page',
total_pages='totalPages',
total_items='pagination.total',
start_index='startIndex',
end_index='endIndex',
page_numbers='pageNumbers',
previous_fn='previousPage()',
next_fn='nextPage()',
goto_fn='goToPage'
) }}
</div>
{{ pagination(show_condition="!loading && pagination.total > 0") }}
<!-- Customer Detail Modal -->
<div x-show="showDetailModal" x-cloak class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black bg-opacity-50">

View File

@@ -250,19 +250,7 @@
</div>
<!-- Pagination -->
<div x-show="!loading && pagination.total > 0" class="mb-8">
{{ pagination(
current_page='pagination.page',
total_pages='totalPages',
total_items='pagination.total',
start_index='startIndex',
end_index='endIndex',
page_numbers='pageNumbers',
previous_fn='previousPage()',
next_fn='nextPage()',
goto_fn='goToPage'
) }}
</div>
{{ pagination(show_condition="!loading && pagination.total > 0") }}
<!-- Adjust Stock Modal -->
{{ modal_simple(

View File

@@ -262,19 +262,7 @@
</div>
<!-- Pagination -->
<div x-show="!loading && pagination.total > 0" class="mb-8">
{{ pagination(
current_page='pagination.page',
total_pages='totalPages',
total_items='pagination.total',
start_index='startIndex',
end_index='endIndex',
page_numbers='pageNumbers',
previous_fn='previousPage()',
next_fn='nextPage()',
goto_fn='goToPage'
) }}
</div>
{{ pagination(show_condition="!loading && pagination.total > 0") }}
<!-- Status Update Modal -->
{{ modal_simple(

View File

@@ -316,19 +316,7 @@
</div>
<!-- Pagination -->
<div x-show="!loading && pagination.total > 0" class="mb-8">
{{ pagination(
current_page='pagination.page',
total_pages='totalPages',
total_items='pagination.total',
start_index='startIndex',
end_index='endIndex',
page_numbers='pageNumbers',
previous_fn='previousPage()',
next_fn='nextPage()',
goto_fn='goToPage'
) }}
</div>
{{ pagination(show_condition="!loading && pagination.total > 0") }}
<!-- Delete Confirmation Modal -->
{{ modal_simple(