Skip to content

Commit

Permalink
What's On Page: Added price_range to featured event and event cards (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs authored Oct 25, 2023
1 parent 4f831e3 commit c000fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/whatson/whats_on_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<div class="tna-column tna-column--full">
{% if page.featured_event %}
{% image page.featured_event.teaser_image fill-1190x600 as featured_img %}
{% include "../components/featured_card.html" with title=page.featured_event.title href=page.featured_event.url headingLevel="2" headingSize="l" htmlElement="article" imageSrc=featured_img.url imageAlt="featured card image alt" imageWidth=featured_img.width imageHeight=featured_img.height date=page.featured_event.start_date|date:"jS F Y" cost="From £16" venue_type=page.featured_event.get_venue_type_display event_type=page.featured_event.event_type access_descriptor=page.featured_event.primary_access_type %}
{% include "../components/featured_card.html" with title=page.featured_event.title href=page.featured_event.url headingLevel="2" headingSize="l" htmlElement="article" imageSrc=featured_img.url imageAlt="featured card image alt" imageWidth=featured_img.width imageHeight=featured_img.height date=page.featured_event.start_date|date:"jS F Y" cost=page.featured_event.price_range venue_type=page.featured_event.get_venue_type_display event_type=page.featured_event.event_type access_descriptor=page.featured_event.primary_access_type %}
{% endif %}

<hgroup class="event-card-listing__heading-area">
Expand All @@ -72,7 +72,7 @@ <h2 class="tna-heading tna-heading--l event-card-listing__heading">All events</h
{% for event in page.events %}
<li class="event-card-listing__item">
{% image event.teaser_image fill-720x448 as event_img %}
{% include "../components/card.html" with title=event.short_title href=event.url headingLevel="2" headingSize="l" htmlElement="article" imageSrc=event_img.url imageAlt=event_image.width imageWidth=event_img.width imageHeight=event_img.height date=event.start_date|date:"jS F Y" cost="From £16" venue_type=event.get_venue_type_display body=event.teaser_text horizontal=True event=True highlight="Sold out" highlight_color="yellow" event_type=event.event_type access_descriptor=event.primary_access_type classes="tna-card--event tna-card--horizontal-thirds" index=forloop.counter0 heading=heading %}
{% include "../components/card.html" with title=event.short_title href=event.url headingLevel="2" headingSize="l" htmlElement="article" imageSrc=event_img.url imageAlt=event_image.width imageWidth=event_img.width imageHeight=event_img.height date=event.start_date|date:"jS F Y" cost=event.price_range venue_type=event.get_venue_type_display body=event.teaser_text horizontal=True event=True highlight="Sold out" highlight_color="yellow" event_type=event.event_type access_descriptor=event.primary_access_type classes="tna-card--event tna-card--horizontal-thirds" index=forloop.counter0 heading=heading %}
</li>
{% endfor %}
{% else %}
Expand Down

0 comments on commit c000fbe

Please sign in to comment.