This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/modules/contrib/webform/templates/webform-submission-navigation.html.twig
2017-03-16 15:29:07 +00:00

32 lines
1.2 KiB
Twig
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{#
/**
* @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.
*
* @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 }}">
<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 %}