From d30cbf64237150839dac3ba4379e93b087383402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 30 Jul 2020 08:44:54 +0000 Subject: [PATCH] [REF] website_event: improve registration pages RATIONALE Even will soon gain a major update called Event Online, allowing to better support full-online events. In order to prepare its merge, preparatory merge are done to lessen the final diff. PURPOSE Prepare Event Online support by providing fixes in registration and event frontend flows. Also provide a quick back2basic in backend views to prepare addition of Online sub modules. SPECIFICATIONS: REGISTRATION PAGE Register: display number of remaining registrations only if < 20% of max capacity. Purpose is to display this text only if remaining count is low. Otherwise it clutters display without much added information. Rephrase to "only XX available" as all events do not use seats specifically. Fix some alignment issues, with tickets title / tickets themselves / event description. Improve display of ticket selection, especially with event_sale installed and in mobile as we may not see content of select box. SPECIFICATIONS: REGISTRATION CONFIRMATION PAGE Change table by simply putting registration information in a card-like display. Display each information (name, email, phone, ...) on a separate line. Purpose is to be mobile-friendly as tables display badly on mobile LINKS Community PR odoo/odoo#55197 Enterprise PR odoo/enterprise#12113 Task ID-2287372 (Fix Twitter Wall) Task ID-2309702 (Event Preparatory Merge 4) Prepares Task ID-2252655 (Main Online Event task) Prepares Task ID-2283796 (Event B2Basics / Registration Flow) Prepares Task ID-2299857 (Event Design Review) --- addons/website_event/i18n/website_event.pot | 49 +++++------- .../website_event/views/event_templates.xml | 80 +++++++++++-------- 2 files changed, 66 insertions(+), 63 deletions(-) diff --git a/addons/website_event/i18n/website_event.pot b/addons/website_event/i18n/website_event.pot index 8b72bc6f9cb..fc88fec0533 100644 --- a/addons/website_event/i18n/website_event.pot +++ b/addons/website_event/i18n/website_event.pot @@ -17,7 +17,12 @@ msgstr "" #. module: website_event #: model_terms:ir.ui.view,arch_db:website_event.registration_template -msgid "(Available seats:" +msgid "(only" +msgstr "" + +#. module: website_event +#: model_terms:ir.ui.view,arch_db:website_event.registration_complete +msgid "(ref:" msgstr "" #. module: website_event @@ -157,7 +162,14 @@ msgstr "" #. module: website_event #: model_terms:ir.ui.view,arch_db:website_event.index_topbar -msgid "Events" +msgid "Events" +msgstr "" + +#. module: website_event +#: model_terms:ir.ui.view,arch_db:website_event.registration_template +msgid "" +"Tickets\n" +" ×" msgstr "" #. module: website_event @@ -346,11 +358,6 @@ msgstr "" msgid "Drag this block and drop it in your page." msgstr "" -#. module: website_event -#: model_terms:ir.ui.view,arch_db:website_event.registration_complete -msgid "E-mail" -msgstr "" - #. module: website_event #: model_terms:ir.ui.view,arch_db:website_event.registration_attendee_details msgid "Email" @@ -501,7 +508,6 @@ msgstr "" #. module: website_event #: model_terms:ir.ui.view,arch_db:website_event.registration_attendee_details -#: model_terms:ir.ui.view,arch_db:website_event.registration_complete msgid "Name" msgstr "" @@ -541,11 +547,6 @@ msgstr "" msgid "Past Events" msgstr "" -#. module: website_event -#: model_terms:ir.ui.view,arch_db:website_event.registration_complete -msgid "Phone" -msgstr "" - #. module: website_event #: model_terms:ir.ui.view,arch_db:website_event.registration_attendee_details msgid "Phone (Optional)" @@ -573,11 +574,6 @@ msgstr "" msgid "Questions" msgstr "" -#. module: website_event -#: model_terms:ir.ui.view,arch_db:website_event.registration_complete -msgid "Reference" -msgstr "" - #. module: website_event #: code:addons/website_event/models/event_event.py:0 #: model_terms:ir.ui.view,arch_db:website_event.registration_template @@ -668,11 +664,6 @@ msgstr "" msgid "This shortcut will bring you right back to the event form." msgstr "" -#. module: website_event -#: model_terms:ir.ui.view,arch_db:website_event.registration_complete -msgid "Ticket" -msgstr "" - #. module: website_event #: model_terms:ir.ui.view,arch_db:website_event.registration_attendee_details msgid "Ticket #" @@ -683,13 +674,6 @@ msgstr "" msgid "Ticket Sales starting on" msgstr "" -#. module: website_event -#: model_terms:ir.ui.view,arch_db:website_event.registration_template -msgid "" -"Tickets\n" -" ×" -msgstr "" - #. module: website_event #: model_terms:ir.ui.view,arch_db:website_event.registration_template msgid "Tickets for this Event are Sold Out" @@ -762,6 +746,11 @@ msgid "" "see when registrating." msgstr "" +#. module: website_event +#: model_terms:ir.ui.view,arch_db:website_event.registration_template +msgid "available)" +msgstr "" + #. module: website_event #: model_terms:ir.ui.view,arch_db:website_event.event_description_full msgid "iCal/Outlook" diff --git a/addons/website_event/views/event_templates.xml b/addons/website_event/views/event_templates.xml index 731a27d103b..8b83422e8e9 100644 --- a/addons/website_event/views/event_templates.xml +++ b/addons/website_event/views/event_templates.xml @@ -429,7 +429,7 @@
-
+
@@ -554,14 +554,14 @@ Registered
- - Tickets + + Tickets ×
-
-
+
+
@@ -570,7 +570,7 @@ Sales end on Sales start on
-
+