Browse Source

tweaked twig

main
astanley 9 hours ago
parent
commit
8b9925ec7a
  1. 4
      templates/field--dynamic-field-label.html.twig

4
templates/field--dynamic-field-label.html.twig

@ -4,9 +4,9 @@
{% for item in dynamic_field_label_items|default(items) %} {% for item in dynamic_field_label_items|default(items) %}
<div{{ item.attributes.addClass('field__item') }}> <div{{ item.attributes.addClass('field__item') }}>
{% if item.dynamic_label is defined and item.dynamic_label is not null %} {% if item.dynamic_label is defined and item.dynamic_label is not null %}
<div class="field__label">{{ item.dynamic_label }}</div> <span class="field__label">{{ item.dynamic_label }}:</span>
{% endif %} {% endif %}
<div class="field__value">{{ item.content }}</div> <span class="field__value">{{ item.content }}</span>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>

Loading…
Cancel
Save