ui2022/topbar--wizard.html.twig line 1

Open in your IDE?
  1. {% set steps = _args.steps|default([]) %}
  2. {% set actions = _args.actions|default([])|filter((i) => i is not empty) %}
  3. {% set subactions = _args.subactions|default([])|filter((i) => i is not empty) %}
  4. <div class="nav-wrap-container msg-nav pt-0 sticky-top">
  5.     <div class="header header__wrapper makesticky">
  6.         <header class="header--light{% if steps %} header--steps{% endif %}">
  7.             <ul class="clear__list inline__list flex__wrap--xycenter">
  8.                 {% for step in steps %}
  9.                     <li class="steps{% if step.active|default(false) %} steps--active{% endif %}">
  10.                         {% if step.button|default(null) %}
  11.                             <span class="header__link">
  12.                                 {% if not step.hide_count|default(false) %}<span class="steps__count">{{ step.badge|default(loop.index) }}</span>{% endif %}
  13.                                 {% include '@ui2022/button.html.twig' with step.button|merge({
  14.                                     text: step.text,
  15.                                 }) %}
  16.                             </span>
  17.                         {% else %}
  18.                             <span class="header__link">
  19.                                 {% if not step.hide_count|default(false) %}<span class="steps__count">{{ step.badge|default(loop.index) }}</span>{% endif %}
  20.                                 <span class="steps__label">{{ step.text }}</span>
  21.                             </span>
  22.                         {% endif %}
  23.                     </li>
  24.                 {% endfor %}
  25.             </ul>
  26.         </header>
  27.         <div class="header__actions header__actions--side">
  28.             {% if subactions is not empty %}
  29.                 <ul class="clear__list inline__list btn__list">
  30.                     {% for subaction in subactions %}
  31.                         <li>
  32.                             {% include '@ui2022/button.html.twig' with subaction %}
  33.                         </li>
  34.                     {% endfor %}
  35.                 </ul>
  36.             {% endif %}
  37.             {% if actions is not empty %}
  38.                 <ul class="clear__list inline__list btn__list ml-sm-auto">
  39.                     {% for action in actions %}
  40.                         <li>
  41.                             {% if action is iterable %}
  42.                                 {% include '@ui2022/button.html.twig' with action %}
  43.                             {% elseif action matches '/^(?:http\\:\\/\\/|https\\:\\/\\/|\\/)/' %}
  44.                                 <img class="header__actions__image" src="{{ action }}" />
  45.                             {% else %}
  46.                                 <p class="mr-2">{{ action }}</p>
  47.                             {% endif %}
  48.                         </li>
  49.                     {% endfor %}
  50.                 </ul>
  51.             {% endif %}
  52.         </div>
  53.     </div>
  54. </div>