webform-submission-navigation.html.twig in Webform 6.x
Same filename and directory in other branches
Default theme implementation to navigate webform submission.
Available variables:
- prev_url: URL to the previous webform submission.
- next_url: URL to the next webform submission.
- webform_id: The webform ID. Provided for context.
- webform_title: The webform title. Provided for context.
1 theme call to webform-submission-navigation.html.twig
- WebformSubmissionNavigation::getInfo in src/
Element/ WebformSubmissionNavigation.php - Returns the element properties for this element.
File
templates/webform-submission-navigation.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to navigate webform submission.
- *
- * Available variables:
- * - prev_url: URL to the previous webform submission.
- * - next_url: URL to the next webform submission.
- * - webform_id: The webform ID. Provided for context.
- * - webform_title: The webform title. Provided for context.
- *
- * @see template_preprocess_webform_submission_navigation()
- *
- * @ingroup themeable
- */
- #}
- {% if prev_url or next_url %}
- <nav id="webform-submission-navigation-{{ webform_id }}" class="webform-submission-navigation" role="navigation" aria-labelledby="webform-submission-label-{{ webform_id }}">
- <h2 class="visually-hidden" id="webform-submission-label-{{ webform_id }}">Submission navigation links for {{ webform_title }}</h2>
- <ul class="webform-submission-pager">
- {% if prev_url %}
- <li class="webform-submission-pager__item webform-submission-pager__item--previous">
- <a href="{{ prev_url }}" rel="prev" title="{{ 'Go to previous page'|t }}"><b>{{ '‹'|t }}</b> {{ 'Previous submission'|t }}</a>
- </li>
- {% endif %}
- {% if next_url %}
- <li class="webform-submission-pager__item webform-submission-pager__item--next">
- <a href="{{ next_url }}" rel="next" title="{{ 'Go to next page'|t }}">{{ 'Next submission'|t }} <b>{{ '›'|t }}</b></a>
- </li>
- {% endif %}
- </ul>
- </nav>
- {% endif %}