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-progress.html.twig

40 lines
960 B
Twig
Raw Normal View History

2017-03-16 15:29:07 +00:00
{#
/**
* @file
* Default theme implementation from webform wizard progress.
*
* Available variables:
* - webform: A webform.
* - pages: Array of wizard pages.
* - current_page: Current wizard page.
* - total_pages: Current wizard page.
* - summary: Summary of progress.
* - percentage: Percentage completed.
* - bar: A progress bar.
*
* @see template_preprocess_webform_progress()
*
* @ingroup themeable
*/
#}
{{ attach_library('webform/webform.progress') }}
<div class="webform-progress">
{{ bar }}
{% if summary or percentage %}
<div class="webform-progress__status">
{% if summary %}
<span class="webform-progress__'summary">{{ summary }}</span>
{% if percentage %}
<span class="webform-progress__percentage">({{ percentage }})</span>
{% endif %}
{% else %}
<span class="webform-progress__percentage">{{ percentage }}</span>
{% endif %}
</div>
{% endif %}
</div>