diff options
| author | std-odoo <std@odoo.com> | 2020-09-25 11:16:46 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-09-29 11:41:12 +0000 |
| commit | f60abdde991f5beb84d06b2cd76553afe9f9c88d (patch) | |
| tree | 262e3ba6842d0a44cccc3ccaffd9ef4d71159ff6 /addons/website_event_track_exhibitor/static/src | |
| parent | 14ed07f7ac7db8f86070474a1c69a820f1bb8787 (diff) | |
[FIX] website_event_{meet, track_exhibitor}: show a warning message when the event is finished
Bug
===
If the event is finished, we should not display the warning message "The
Event starts on...". Instead, we should say that the event is over.
We therefore better handle timeframes.
Task ID-2345894
PR #58516
X-original-commit: 7a41dadd9fbfb4643d981d9e9eba90befad3e013
Diffstat (limited to 'addons/website_event_track_exhibitor/static/src')
| -rw-r--r-- | addons/website_event_track_exhibitor/static/src/xml/event_exhibitor_connect.xml | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/addons/website_event_track_exhibitor/static/src/xml/event_exhibitor_connect.xml b/addons/website_event_track_exhibitor/static/src/xml/event_exhibitor_connect.xml index f3afca98675..72529e70548 100644 --- a/addons/website_event_track_exhibitor/static/src/xml/event_exhibitor_connect.xml +++ b/addons/website_event_track_exhibitor/static/src/xml/event_exhibitor_connect.xml @@ -4,18 +4,27 @@ <t t-name="exhibitor.connect.closed.modal"> <div class="o_wesponsor_js_connect_modal_main container"> <div class="row mt-2"> - <div class="col-12 alert alert-warning text-center" role="alert" - t-if="! widget.sponsorData.event_is_ongoing"> - <span t-esc="widget.sponsorData.name" class="font-weight-bold"/> is not available right now.<br /> - Event <span t-esc="widget.sponsorData.event_name" class="font-weight-bold"/> - <span t-if="widget.sponsorData.event_start_today"> - starts in - <span t-esc="widget.sponsorData.event_start_remaining"/> minutes - </span> - <span class="my-0" t-else=""> - starts on <span t-esc="widget.sponsorData.event_date_begin_located"/> - </span> - </div> + <t t-if="! widget.sponsorData.event_is_ongoing"> + <div class="col-12 alert alert-warning text-center" role="alert" + t-if="widget.sponsorData.event_is_done"> + Event <span t-esc="widget.sponsorData.event_name" class="font-weight-bold"/> is over. + + <br/> + <span>Join us next time to meet <b t-esc="widget.sponsorData.name"/>!</span> + </div> + <div class="col-12 alert alert-warning text-center" role="alert" + t-else=""> + <span t-esc="widget.sponsorData.name" class="font-weight-bold"/> is not available right now.<br /> + Event <span t-esc="widget.sponsorData.event_name" class="font-weight-bold"/> + <span t-if="widget.sponsorData.event_start_today"> + starts in + <span t-esc="widget.sponsorData.event_start_remaining"/> minutes + </span> + <span class="my-0" t-else=""> + starts on <span t-esc="widget.sponsorData.event_date_begin_located"/> + </span> + </div> + </t> <div class="col-12 alert alert-warning text-center" role="alert" t-else=""> <span t-esc="widget.sponsorData.name" class="font-weight-bold"/> is not available right now.<br /> |
