You are here

webform-submission-navigation.html.twig in Webform 6.x

Same filename and directory in other branches
  1. 8.5 templates/webform-submission-navigation.html.twig

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.

File

templates/webform-submission-navigation.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to navigate webform submission.
  5. *
  6. * Available variables:
  7. * - prev_url: URL to the previous webform submission.
  8. * - next_url: URL to the next webform submission.
  9. * - webform_id: The webform ID. Provided for context.
  10. * - webform_title: The webform title. Provided for context.
  11. *
  12. * @see template_preprocess_webform_submission_navigation()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% if prev_url or next_url %}
  18. <nav id="webform-submission-navigation-{{ webform_id }}" class="webform-submission-navigation" role="navigation" aria-labelledby="webform-submission-label-{{ webform_id }}">
  19. <h2 class="visually-hidden" id="webform-submission-label-{{ webform_id }}">Submission navigation links for {{ webform_title }}</h2>
  20. <ul class="webform-submission-pager">
  21. {% if prev_url %}
  22. <li class="webform-submission-pager__item webform-submission-pager__item--previous">
  23. <a href="{{ prev_url }}" rel="prev" title="{{ 'Go to previous page'|t }}"><b>{{ '‹'|t }}</b> {{ 'Previous submission'|t }}</a>
  24. </li>
  25. {% endif %}
  26. {% if next_url %}
  27. <li class="webform-submission-pager__item webform-submission-pager__item--next">
  28. <a href="{{ next_url }}" rel="next" title="{{ 'Go to next page'|t }}">{{ 'Next submission'|t }} <b>{{ '›'|t }}</b></a>
  29. </li>
  30. {% endif %}
  31. </ul>
  32. </nav>
  33. {% endif %}