You are here

entityconnect-entity-add-list.html.twig in Entity connect 8.2

Default theme implementation for the Entityconnect Entity Add List template.

Available variables:

  • items: An array of entities info to list (href, cache_id, label).
  • cancel: The cancel button link.

File

templates/entityconnect-entity-add-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the Entityconnect Entity Add List template.
  5. *
  6. * Available variables:
  7. * - items: An array of entities info to list (href, cache_id, label).
  8. * - cancel: The cancel button link.
  9. *
  10. * @see template_preprocess_entityconnect_entity_add_list()
  11. */
  12. #}
  13. {% if items %}
  14. <ul class="admin-list">
  15. {% for item in items %}
  16. <li class="clearfix">
  17. <span class="label"><a href="{{ item.href }}?build_cache_id={{ cache_id }}&child=1">{{ item.label }}</a></span>
  18. </li>
  19. {% endfor %}
  20. </ul>
  21. {% else %}
  22. <p>
  23. {% trans %}
  24. You have not selected any entities.
  25. {% endtrans %}
  26. </p>
  27. {% endif %}
  28. <p>{{ cancel_link }}</p>