diff --git a/views/event_template_page_registration.xml b/views/event_template_page_registration.xml index 40cb8b6f9c441d23574aa63d1515b12e11d99b2c..522fd92a0e631c8ef70ff97cdd81067ec46c73d1 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>