From 2d713ec6df4fe68887f526244e4992835045fdf9 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Wed, 28 Jun 2023 18:07:29 +0200 Subject: [PATCH] [update] confirmation template to show events and sessions --- views/event_template_page_registration.xml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/views/event_template_page_registration.xml b/views/event_template_page_registration.xml index 40cb8b6..522fd92 100644 --- a/views/event_template_page_registration.xml +++ b/views/event_template_page_registration.xml @@ -213,4 +213,33 @@ </div> </template> + + <template + id="registration_complete" + inherit_id="website_event.registration_complete" + name="Registration Complete with sessions" + priority="20" + > + <xpath expr="//div[hasclass('flex-column')]" position="attributes"> + <attribute name="t-if">not attendee.session_id</attribute> + </xpath> + <xpath expr="//div[hasclass('flex-column')]" position="after"> + <div class="d-flex flex-column" t-if="attendee.session_id"> + <span class="text-truncate"> + <u>Atelier :</u> + </span> + <span class="fw-bold text-truncate"> + <t t-if="attendee.session_id.session_name" t-out="attendee.session_id.session_name"/> + <t t-else="">N/A</t> + </span> + <span class="text-truncate text-muted"> + Début : <span t-field="attendee.session_id.date_begin"/> + </span> + <span class="text-truncate text-muted"> + Fin : <span t-field="attendee.session_id.date_end"/> + </span> + </div> + </xpath> + </template> + </odoo> -- GitLab