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:
14
app/templates/vendor/orders.html
vendored
14
app/templates/vendor/orders.html
vendored
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user