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.
4 theme calls to yamlform-submission-navigation.html.twig
- YamlFormSubmissionController::index in src/
Controller/ YamlFormSubmissionController.php - Returns a form submission in a specified format type.
- YamlFormSubmissionForm::form in src/
YamlFormSubmissionForm.php - Gets the actual form array to be built.
- YamlFormSubmissionNotesForm::form in src/
YamlFormSubmissionNotesForm.php - Gets the actual form array to be built.
- YamlFormSubmissionResendForm::buildForm in src/
Form/ YamlFormSubmissionResendForm.php - Form constructor.
File
templates/yamlform-submission-navigation.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see template_preprocess_yamlform_submission_navigation()
- *
- * @ingroup themeable
- */
- #}
- {% if prev_url or next_url %}
- <nav id="yamlform-submission-navigation-{{ yamlform_id }}" class="yamlform-submission-navigation" role="navigation" aria-labelledby="yamlform-submission-label-{{ yamlform_id }}">
- <ul class="yamlform-submission-pager">
- {% if prev_url %}
- <li class="yamlform-submission-pager__item yamlform-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="yamlform-submission-pager__item yamlform-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 %}