Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMS-1059: Add Sign up-section to event partial #153

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- TMS-1059: Add Sign up-section to event partial

## [1.8.0] - 2024-10-24

- TMS-1075: Redipress 2 filters
Expand Down
48 changes: 29 additions & 19 deletions partials/views/single-dynamic-event/single-dynamic-event-info.dust
Original file line number Diff line number Diff line change
@@ -1,84 +1,94 @@
{?event.normalized.date}
<div class="info-group mb-5 {template_classes.info_group|s}">
<div class="info-group mb-5 {template_classes.info_group|attr}">
{>"views/single-dynamic-event/single-dynamic-event-group-title" title=event.normalized.date_title template_classes=template_classes.info_group_title icon="date" /}

<div class="info-group__description pr-8 pb-3 pl-9">
{event.normalized.date|s}
{event.normalized.date|html}
</div>
</div>
{/event.normalized.date}

{?event.normalized.time}
<div class="info-group mb-5 {template_classes.info_group|s}">
<div class="info-group mb-5 {template_classes.info_group|attr}">
{>"views/single-dynamic-event/single-dynamic-event-group-title" title=event.normalized.time_title template_classes=template_classes.info_group_title icon="time" /}

<div class="info-group__description pr-8 pb-3 pl-9">
{event.normalized.time|s}
{event.normalized.time|html}
</div>
</div>
{/event.normalized.time}

{?event.normalized.location}
<div class="info-group mb-5 {template_classes.info_group|s}">
<div class="info-group mb-5 {template_classes.info_group|attr}">
{>"views/single-dynamic-event/single-dynamic-event-group-title" title=event.normalized.location_title template_classes=template_classes.info_group_title icon="location" /}

<div class="info-group__description pr-8 pb-3 pl-9">
<div>{event.normalized.location.name|s}</div>
<div>{event.normalized.location.description|s}</div>
<div>{event.normalized.location.extra_info|s}</div>
<div>{event.normalized.location.name|html}</div>
<div>{event.normalized.location.description|html}</div>
<div>{event.normalized.location.extra_info|html}</div>
{>"ui/link" link=event.normalized.location.info_url classes="is-inline-block mt-2" /}
</div>
</div>
{/event.normalized.location}

{?event.normalized.price}
<div class="info-group mb-5 {template_classes.info_group|s}">
<div class="info-group mb-5 {template_classes.info_group|attr}">
{>"views/single-dynamic-event/single-dynamic-event-group-title" title=event.normalized.price_title template_classes=template_classes.info_group_title icon="euro" /}

<div class="info-group__description pr-8 pb-3 pl-9">
{#event.normalized.price}
<div>
{price|s}
{price|html}
</div>
<div>
{description|s}
{description|html}
</div>
{>"ui/link" link=info_url /}
{/event.normalized.price}
</div>
</div>
{/event.normalized.price}

{?event.normalized.link_sign_up}
<div class="info-group mb-5 {template_classes.info_group|attr}">
{>"views/single-dynamic-event/single-dynamic-event-group-title" title=event.normalized.sign_up_title template_classes=template_classes.info_group_title icon="link" /}

<div class="info-group__description pr-8 pb-3 pl-9">
<a href="{event.normalized.link_sign_up.url|url}" target="_blank" class="is-block">{event.normalized.link_sign_up.name|html}</a>
</div>
</div>
{/event.normalized.link_sign_up}

{?event.normalized.provider}
<div class="info-group mb-5 {template_classes.info_group|s}">
<div class="info-group mb-5 {template_classes.info_group|attr}">
{>"views/single-dynamic-event/single-dynamic-event-group-title" title=event.normalized.provider_title template_classes=template_classes.info_group_title icon="bullhorn" /}

<div class="info-group__description pr-8 pb-3 pl-9">
<div>{event.normalized.provider.name|s}</div>
<div>{event.normalized.provider.name|html}</div>

{?event.normalized.provider.email}
<div>
<a href="mailto:{event.normalized.provider.email}"
<a href="mailto:{event.normalized.provider.email|attr}"
class="has-text-black">
{event.normalized.provider.email|s}
{event.normalized.provider.email|html}
</a>
</div>
{/event.normalized.provider.email}

{?event.normalized.provider.phone}
<div>
<a href="tel:{event.normalized.provider.phone}"
<a href="tel:{event.normalized.provider.phone|attr}"
class="has-text-black">
{event.normalized.provider.phone|s}
{event.normalized.provider.phone|html}
</a>
</div>
{/event.normalized.provider.phone}
</div>
</div>

{>"ui/button-link" link=event.normalized.provider.link classes="is-primary mt-3 {template_classes.info_button|s}" icon="chevron-right" icon_classes="icon--medium" /}
{>"ui/button-link" link=event.normalized.provider.link classes="is-primary mt-3 {template_classes.info_button|attr}" icon="chevron-right" icon_classes="icon--medium" /}
{/event.normalized.provider}

{?event.normalized.virtual_event_link}
{>"ui/button-link" link=event.normalized.virtual_event_link classes="is-primary mt-3 {template_classes.info_button|s}" icon="chevron-right" icon_classes="icon--medium" /}
{>"ui/button-link" link=event.normalized.virtual_event_link classes="is-primary mt-3 {template_classes.info_button|attr}" icon="chevron-right" icon_classes="icon--medium" /}
{/event.normalized.virtual_event_link}
Loading