Skip to content
Snippets Groups Projects
Commit 463d63c4 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4929: updating node to use missing events fields

parent 34ce6c6f
No related branches found
No related tags found
1 merge request!75ISTWCMS-4929: updating node to use missing events fields
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -30,5 +30,11 @@ ...@@ -30,5 +30,11 @@
'featured_image': featured_image, 'featured_image': featured_image,
'card_type': 'node', 'card_type': 'node',
'hero': node.hero, 'hero': node.hero,
'host': node.host,
'event_website': node.event_website,
'cost': node.cost,
'map': node.map,
'address': node.address,
'map_link': node.map_link,
} %} } %}
</div> </div>
...@@ -158,6 +158,95 @@ ...@@ -158,6 +158,95 @@
</div> </div>
{% endif %} {% endif %}
{% if host or event_website or cost %}
<div class="card__additional-info">
{% embed '@components/details/details.twig' with {
is_open: TRUE,
} %}
{% block details_summary %}
Additional Information
{% endblock %}
{% block details_content %}
{% if host %}
<div class="uw-contact__host">
<strong>Host:</strong><br />
<a href="{{ host.uri }}">
{% if host.title %}
{{ host.title }}
{% else %}
{{ host.uri }}
{% endif %}
</a>
</div>
{% endif %}
{% if event_website %}
<div class="uw-contact__event-website">
<strong>Event website:</strong><br />
<a href="{{ event_website.uri }}">
{% if event_website.title %}
{{ event_website.title }}
{% else %}
{{ event_website.uri }}
{% endif %}
</a>
</div>
{% endif %}
{% if cost %}
<div class="uw-contact__cost">
<strong>Cost:</strong><br />
${{ cost }}
</div>
{% endif %}
{% endblock %}
{% endembed %}
</div>
{% endif %}
{% if address or map or map_link %}
<div class="card__location">
{% embed '@components/details/details.twig' with {
is_open: TRUE,
} %}
{% block details_summary %}
Location Information
{% endblock %}
{% block details_content %}
{% if address %}
<div class="uw-contact__address">
<strong>Location Address:</strong><br />
{% if address.address_line1 %}
{{ address.address_line1 }}<br />
{% endif %}
{% if address.address_line2 %}
{{ address.address_line2 }}<br />
{% endif %}
{% if address.locality %}
{{ address.locality }}{% if address.administrative_area %} , {{ address.administrative_area }}{% endif %}{% if address.country_code %}, {{ address.country_code }}{% endif %}
{% endif %}
{% if address.postal_code %}
{{ address.postal_code }}
{% endif %}
</div>
{% endif %}
{% if map %}
<div class="uw-contact__map">
<strong>Location coordinates:</strong><br />
{{ map }}
</div>
{% endif %}
{% if map_link %}
<div class="uw-contact__map-link">
<strong>Link to map:</strong><br />
<a href="{{ map_link.uri }}">{{ map_link.uri }}</a>
</div>
{% endif %}
{% endblock %}
{% endembed %}
</div>
{% endif %}
{% if contact_for %} {% if contact_for %}
<div class="card__contact-for"> <div class="card__contact-for">
{% embed '@components/details/details.twig' %} {% embed '@components/details/details.twig' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment