You are here

double-field-definition-list.html.twig in Double Field 8.3

Same filename and directory in other branches
  1. 4.x templates/double-field-definition-list.html.twig
<dl class="double-field-definition-list">
{%- for item in items -%}
  <dt>
    {% if settings.first.prefix %}
      <span class="double-field-prefix">{{ settings.first.prefix }}</span>
    {% endif %}
    {{ item.first }}
    {% if settings.first.suffix %}
      <span class="double-field-suffix">{{ settings.first.suffix }}</span>
    {% endif %}
  </dt>
  <dd>
    {% if settings.second.prefix %}
      <span class="double-field-prefix">{{ settings.second.prefix }}</span>
    {% endif %}
    {{ item.second }}
    {% if settings.second.suffix %}
      <span class="double-field-suffix">{{ settings.second.suffix }}</span>
    {% endif %}
  </dd>
{%- endfor -%}
</dl>

File

templates/double-field-definition-list.html.twig
View source
  1. <dl class="double-field-definition-list">
  2. {%- for item in items -%}
  3. <dt>
  4. {% if settings.first.prefix %}
  5. <span class="double-field-prefix">{{ settings.first.prefix }}</span>
  6. {% endif %}
  7. {{ item.first }}
  8. {% if settings.first.suffix %}
  9. <span class="double-field-suffix">{{ settings.first.suffix }}</span>
  10. {% endif %}
  11. </dt>
  12. <dd>
  13. {% if settings.second.prefix %}
  14. <span class="double-field-prefix">{{ settings.second.prefix }}</span>
  15. {% endif %}
  16. {{ item.second }}
  17. {% if settings.second.suffix %}
  18. <span class="double-field-suffix">{{ settings.second.suffix }}</span>
  19. {% endif %}
  20. </dd>
  21. {%- endfor -%}
  22. </dl>