{% extends "node--event--teaser.html.twig" %}

{% block card_body %}

  {% embed "node--teaser__field.html.twig" %}
    {%- block field_icon -%} event {%- endblock -%}
    {%- block svg_title -%} {% trans %}Event date{% endtrans %} {%- endblock -%}
    {%- block field_value %}
      <span class="sr-only">{% trans %}Event date{% endtrans %} </span>
      {{ event_date }}
    {%- endblock -%}
  {% endembed %}

  {% if content.field_event_location|render is not empty %}
    {% embed "node--teaser__field.html.twig" %}
      {%- block field_icon -%} location {%- endblock -%}
      {%- block svg_title -%} {% trans %}The event will take place at the{% endtrans %} {%- endblock -%}
      {%- block field_value -%}
        <span class="sr-only">{% trans %}The event will take place at the{% endtrans %} </span>
        {{ content.field_event_location }}
      {%- endblock -%}
    {% endembed %}
  {% endif %}

  {% if content.group_name %}
    {% embed "node--teaser__field.html.twig" %}
      {%- block field_icon -%} group {%- endblock -%}
      {%- block svg_title -%} {% trans %}This event is posted in{% endtrans %} {%- endblock -%}
      {%- block field_value -%}
        <span class="sr-only">{% trans %}This event is posted in{% endtrans %} </span>
        {{ content.group_name }}
      {%- endblock -%}
    {% endembed %}
  {% endif %}

{% endblock %}
