diff --git a/src/backend/views/components/navigator.twig b/src/backend/views/components/navigator.twig index 7fa17e5..e7f8cda 100644 --- a/src/backend/views/components/navigator.twig +++ b/src/backend/views/components/navigator.twig @@ -1,13 +1,12 @@ {# Reusable navigaor component. Available props: - - label - - direction: previous, next - - url: navigation link - - class: additional class for the button + - previousPage + - nextPage + - class: additional class for the navigator Usage example: - {% include 'components/navigator.twig' with {label: 'Previous page', direction: 'previous'} %} + {% include 'components/navigator.twig' with {previousPage: previousPage, nextPage: nextPage} %} #} {% set mainClass = 'navigator' %} @@ -15,23 +14,39 @@ Usage example: {% set tag = 'div' %} -{% if url is not empty %} - {% set tag = 'a' %} -{% endif %} +{% set tag = 'a' %} -