You are here

yamlform-submission-navigation.html.twig in YAML Form 8

Default theme implementation to navigate form submission.

Available variables:

  • prev_url: URL to the previous form submission.
  • next_url: URL to the next form submission.
  • yamlform_id: The form ID. Provided for context.

File

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