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/customers.html
vendored
14
app/templates/vendor/customers.html
vendored
@@ -175,19 +175,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Pagination -->
|
<!-- Pagination -->
|
||||||
<div x-show="!loading && pagination.total > 0" class="mb-8">
|
{{ pagination(show_condition="!loading && pagination.total > 0") }}
|
||||||
{{ 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>
|
|
||||||
|
|
||||||
<!-- Customer Detail Modal -->
|
<!-- 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">
|
<div x-show="showDetailModal" x-cloak class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black bg-opacity-50">
|
||||||
|
|||||||
14
app/templates/vendor/inventory.html
vendored
14
app/templates/vendor/inventory.html
vendored
@@ -250,19 +250,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Pagination -->
|
<!-- Pagination -->
|
||||||
<div x-show="!loading && pagination.total > 0" class="mb-8">
|
{{ pagination(show_condition="!loading && pagination.total > 0") }}
|
||||||
{{ 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>
|
|
||||||
|
|
||||||
<!-- Adjust Stock Modal -->
|
<!-- Adjust Stock Modal -->
|
||||||
{{ modal_simple(
|
{{ modal_simple(
|
||||||
|
|||||||
14
app/templates/vendor/orders.html
vendored
14
app/templates/vendor/orders.html
vendored
@@ -262,19 +262,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Pagination -->
|
<!-- Pagination -->
|
||||||
<div x-show="!loading && pagination.total > 0" class="mb-8">
|
{{ pagination(show_condition="!loading && pagination.total > 0") }}
|
||||||
{{ 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>
|
|
||||||
|
|
||||||
<!-- Status Update Modal -->
|
<!-- Status Update Modal -->
|
||||||
{{ modal_simple(
|
{{ modal_simple(
|
||||||
|
|||||||
14
app/templates/vendor/products.html
vendored
14
app/templates/vendor/products.html
vendored
@@ -316,19 +316,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Pagination -->
|
<!-- Pagination -->
|
||||||
<div x-show="!loading && pagination.total > 0" class="mb-8">
|
{{ pagination(show_condition="!loading && pagination.total > 0") }}
|
||||||
{{ 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>
|
|
||||||
|
|
||||||
<!-- Delete Confirmation Modal -->
|
<!-- Delete Confirmation Modal -->
|
||||||
{{ modal_simple(
|
{{ modal_simple(
|
||||||
|
|||||||
Reference in New Issue
Block a user