diff options
| author | Quentin Mourier <qmo@odoo.com> | 2020-09-28 13:40:56 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-09-28 13:40:56 +0000 |
| commit | f79a20b140069d6ef836f36e7bb5b6aefb736b76 (patch) | |
| tree | eeea8e0fe51c11ea21d62c3b9d2e9a31ebf7b5e2 /addons | |
| parent | b34d40cfb3f3af9cdd21530791e939120d075ff9 (diff) | |
[IMP] website_event: improve "registration done" location display
Currently event location is displayed on the right of timing / calendar
buttons. This feels a bit strange as it is a bit lost in the screen.
In this commit we simplify display by displaying: registration taken, then
location, then timing + buttons. This was already the look-and-feel in
mobile and is therefore simpler.
Task ID-2325017
COM PR odoo/odoo#57744
ENT PR #13571
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website_event/views/event_templates_page_registration.xml | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/addons/website_event/views/event_templates_page_registration.xml b/addons/website_event/views/event_templates_page_registration.xml index dddaf61e59b..ad454de1a5c 100644 --- a/addons/website_event/views/event_templates_page_registration.xml +++ b/addons/website_event/views/event_templates_page_registration.xml @@ -336,8 +336,22 @@ </div> </div> <div class="row mb-3"> - <div class="col-lg-8"> + <div class="col"> <p><b>Start</b> <span itemprop="startDate" t-esc="event.date_begin_located"/><br/> <b>End</b> <span itemprop="endDate" t-esc="event.date_end_located"/></p> + <div class="mt-4"> + <h5 t-field="event.address_id" class="text-secondary font-weight-bold" t-options='{ + "widget": "contact", + "fields": ["name"] + }'/> + <a itemprop="location" t-att-href="event.google_map_link()" target="_BLANK" temprop="location" t-field="event.address_id" t-options='{ + "widget": "contact", + "fields": ["address"] + }'/> + <div itemprop="location" t-field="event.address_id" t-options='{ + "widget": "contact", + "fields": ["phone", "mobile", "email"] + }'/> + </div> <div id="add_to_calendar" class="mt-4 d-flex flex-column flex-md-row"> <a role="button" class="btn btn-primary" t-att-href="iCal_url"> <i class="fa fa-fw fa-calendar"/> Add to iCal/Outlook @@ -347,20 +361,6 @@ </a> </div> </div> - <div class="col-lg-4 mt-4 mt-lg-0"> - <h4 t-field="event.address_id" class="text-secondary font-weight-bold" t-options='{ - "widget": "contact", - "fields": ["name"] - }'/> - <a itemprop="location" t-att-href="event.google_map_link()" target="_BLANK" temprop="location" t-field="event.address_id" t-options='{ - "widget": "contact", - "fields": ["address"] - }'/> - <div itemprop="location" t-field="event.address_id" t-options='{ - "widget": "contact", - "fields": ["phone", "mobile", "email"] - }'/> - </div> </div> </div> </t> |
