summaryrefslogtreecommitdiff
path: root/addons/website_event
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-08-07 10:39:52 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-13 06:30:33 +0000
commit93bdf893cc83695a809d7914f3134c135755fff6 (patch)
tree67ebda574891e7d16ea403cef72b3d98c3efcd2a /addons/website_event
parent85208bc51bf363ed4a63bb03cbb7c1a669f78b1a (diff)
[FIX] website_event: fix event card body in card-based display
When using the card-based display you may have the top of card body that is not at the same height across a given row. This can be seen notably if some cards have a footer and some other not, if one event is not yet registrable. One drawback is that using the "show template" option displays the template (category) name incorrectly. It should be part above the event image, part below it. Without this fix it may be set completely below the image, leading to incoherent row display. LINKS Related to testing of EventOnline Task ID-2314778 Fwd port of PR #55625 PR #55642
Diffstat (limited to 'addons/website_event')
-rw-r--r--addons/website_event/views/event_templates.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/website_event/views/event_templates.xml b/addons/website_event/views/event_templates.xml
index 812df267bbc..f37d9c4998d 100644
--- a/addons/website_event/views/event_templates.xml
+++ b/addons/website_event/views/event_templates.xml
@@ -204,7 +204,9 @@
</t>
</div>
</header>
- <div t-attf-class="#{opt_events_list_columns and 'col-12' or 'col'}">
+ <div t-att-class="'%s %s' % (
+ opt_events_list_columns and 'col-12' or 'col',
+ opt_events_list_columns and event.event_registrations_open and not event.event_registrations_sold_out and 'h-100' or '')">
<!-- Body -->
<main t-attf-class="#{opt_events_list_cards and 'card-body' or (opt_events_list_columns and 'py-3' or 'px-4')}">
<!-- Title -->