ui2022/table__item__cell--status.html.twig line 1

Open in your IDE?
  1. {% set title = _args.title %}
  2. {% set link = _args.link|default(null) %}
  3. {% set target = _args.target|default(null) %}
  4. {% set status = _args.status|default(null) %}
  5. {% set subtext = _args.subtext|default(null) %}
  6. {% set subicon = _args.subicon|default(null) %}
  7. {% set subinfo = _args.subinfo|default(null) %}
  8. {% set actions = _args.actions|default([])|filter((action) => action is not empty) %}
  9. {% set modal = _args.modal|default(null) %}
  10. {% set sidepanel = _args.sidepanel|default(null) %}
  11. <td>
  12.     {% if link %}<a href="{{- link -}}"{% if target %} target="{{ target }}"{% endif %}{% if modal %} data-toggle="modal" data-target="#{{ modal }}"{% endif %}{% if sidepanel %} data-toggle="sidepanel"data-target="#{{ sidepanel }}"{% endif %} class="text-medium d-block">{% endif %}
  13.         <span class="text-medium d-block">{{ title }}</span>
  14.     {% if link %}</a>{% endif %}
  15.     {% if status is not empty or subtext %}
  16.         <span class="tablesub tablesub--medium">
  17.             {% if status is not empty  %}
  18.                 <span class="status status--{{- status -}}"></span>
  19.             {% endif %}
  20.             {% if subtext %}
  21.                 <span class="tablesub__text">
  22.                     <span class="status-text">{{- subtext -}}</span>
  23.                     {% if subicon %}
  24.                         <span class="{{ subicon }} ml-2 mr-1 text-gray-light"></span>
  25.                     {% endif %}
  26.                     {% if subinfo %}
  27.                         <span class="sub-text">{{ subinfo }}</span>
  28.                     {% endif %}
  29.                 </span>
  30.             {% endif %}
  31.         </span>
  32.     {% endif %}
  33.     {% if actions is not empty %}
  34.         <span class="table__actions">
  35.             {% for action in actions %}
  36.                 {% include '@ui2022/button--a.html.twig' with {
  37.                     styles: 'white md',
  38.                 }|merge(action) %}
  39.             {% endfor %}
  40.         </span>
  41.     {% endif %}
  42. </td>