From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/event/data/email_template_data.xml | 479 ++++++++++++++++++++++++++++++ 1 file changed, 479 insertions(+) create mode 100644 addons/event/data/email_template_data.xml (limited to 'addons/event/data/email_template_data.xml') diff --git a/addons/event/data/email_template_data.xml b/addons/event/data/email_template_data.xml new file mode 100644 index 00000000..4bc9af21 --- /dev/null +++ b/addons/event/data/email_template_data.xml @@ -0,0 +1,479 @@ + + + + + + Event: Registration Badge + + Your badge for ${object.event_id.name} + ${(object.event_id.organizer_id.email_formatted or object.event_id.user_id.email_formatted or '') | safe} + ${(object.email and '"%s" <%s>' % (object.name, object.email) or object.partner_id.email_formatted or '') | safe} + +
+ Dear ${object.name},
+ Thank you for your inquiry.
+ Here is your badge for the event ${object.event_id.name}.
+ If you have any questions, please let us know. +

+ Thank you, + % if object.event_id.user_id.signature: +
+ ${object.event_id.user_id.signature | safe} + % endif +
+ + badge_of_${(object.event_id.name or '').replace('/','_')} + ${object.partner_id.lang} + +
+ + + Event: Registration + + Your registration at ${object.event_id.name} + ${(object.event_id.organizer_id.email_formatted or object.event_id.user_id.email_formatted or '') | safe} + ${(object.email and '"%s" <%s>' % (object.name, object.email) or object.partner_id.email_formatted or '') | safe} + + + + +
+% set date_begin = format_datetime(object.event_id.date_begin, tz='UTC', dt_format="yyyyMMdd'T'HHmmss'Z'") +% set date_end = format_datetime(object.event_id.date_end, tz='UTC', dt_format="yyyyMMdd'T'HHmmss'Z'") +% set is_online = 'is_published' in object.event_id and object.event_id.is_published +% set event_organizer = object.event_id.organizer_id +% set event_address = object.event_id.address_id + + + + + + + + + + + + + + + +
+ + + +
+ Your registration
+ + ${object.name} + +
+ % if is_online + + View Event + + % else + ${'%s' % object.company_id.name} + % endif +
+
+
+
+ + + +
+
+ Hello ${object.name or ''},
+ We are happy to confirm your registration to the event + % if is_online: + ${object.event_id.name} + % else: + ${object.event_id.name} + % endif + for attendee ${object.name}. +
+
+
+ Add this event to your calendar + Google + iCal/Outlook + + Yahoo + +

+
+
+ See you soon,
+ + --
+ % if event_organizer: + ${event_organizer.name} + % else: + The ${object.event_id.name} Team + % endif +
+
+
+
+
+
+ + + + + + + + + + + +
+ + + + + + + +
+ + +
From ${object.event_id.date_begin_located}
+
To ${object.event_id.date_end_located}
+
TZ ${object.event_id.date_tz}
+
+ % if event_address: + + % endif + + % if event_address: + % set location = '' + % if object.event_id.address_id.name: +
${object.event_id.address_id.name}
+ % endif + % if object.event_id.address_id.street: +
${object.event_id.address_id.street}
+ % set location = object.event_id.address_id.street + % endif + % if object.event_id.address_id.street2: +
${object.event_id.address_id.street2}
+ % set location = '%s, %s' % (location, object.event_id.address_id.street2) + % endif +
+ % if object.event_id.address_id.city: + ${object.event_id.address_id.city}, + % set location = '%s, %s' % (location, object.event_id.address_id.city) + % endif + % if object.event_id.address_id.state_id.name: + ${object.event_id.address_id.state_id.name}, + % set location = '%s, %s' % (location, object.event_id.address_id.state_id.name) + % endif + % if object.event_id.address_id.zip: + ${object.event_id.address_id.zip} + % set location = '%s, %s' % (location, object.event_id.address_id.zip) + % endif +
+ % if object.event_id.address_id.country_id.name: +
${object.event_id.address_id.country_id.name}
+ % set location = '%s, %s' % (location, object.event_id.address_id.country_id.name) + % endif + % endif +
+
+ % if event_organizer +
+ % endif +
+ + % if event_organizer: +
+ Questions about this event? +
Please contact the organizer:
+
    +
  • ${event_organizer.name}
  • + % if event_organizer.email +
  • Mail: ${event_organizer.email}
  • + % endif + % if event_organizer.phone +
  • Phone: ${event_organizer.phone}
  • + % endif +
+
+ % endif +
+ + % if is_online or event_address: +
+ % endif +
+ + % if is_online: +
+ Get the best mobile experience. + Install our mobile app +
+ % endif +
+ + % if is_online and event_address: +
+ % endif +
+ + % if event_address: +
+
+ + Google Maps + +
+
+ % endif +
+
+
+ % if object.company_id + + +
+ Sent by ${object.company_id.name} + % if is_online: +
+ Discover all our events. + % endif +
+ % endif +
+
+ ${object.partner_id.lang} +
+ + + Event: Reminder + + ${object.event_id.name}: ${object.get_date_range_str()} + ${(object.event_id.organizer_id.email_formatted or object.event_id.user_id.email_formatted or '') | safe} + ${(object.email and '"%s" <%s>' % (object.name, object.email) or object.partner_id.email_formatted or '') | safe} + + + + +
+% set date_begin = format_datetime(object.event_id.date_begin, tz='UTC', dt_format="yyyyMMdd'T'HHmmss'Z'") +% set date_end = format_datetime(object.event_id.date_end, tz='UTC', dt_format="yyyyMMdd'T'HHmmss'Z'") +% set is_online = 'is_published' in object.event_id and object.event_id.is_published +% set event_organizer = object.event_id.organizer_id +% set event_address = object.event_id.address_id + + + + + + + + + + + + + + + +
+ + + +
+ Your registration
+ + ${object.name} + +
+ % if is_online + + View Event + + % else + ${'%s' % object.company_id.name} + % endif +
+
+
+
+ + + +
+
+ Hello ${object.name},
+ We are excited to remind you that the event + % if is_online: + ${object.event_id.name} + % else: + ${object.event_id.name} + % endif + is starting ${object.get_date_range_str()}. +
+
+
+ Add this event to your calendar + Google + iCal/Outlook + + Yahoo + +

+
+
+ We confirm your registration and hope to meet you there,
+ + --
+ % if event_organizer: + ${event_organizer.name} + % else: + The ${object.event_id.name} Team + % endif +
+
+
+
+
+
+ + + + + + + + + + + +
+ + + + + + + +
+ + +
From ${object.event_id.date_begin_located}
+
To ${object.event_id.date_end_located}
+
TZ ${object.event_id.date_tz}
+
+ % if event_address: + + % endif + + % if event_address: + % set location = '' + % if object.event_id.address_id.name: +
${object.event_id.address_id.name}
+ % endif + % if object.event_id.address_id.street: +
${object.event_id.address_id.street}
+ % set location = object.event_id.address_id.street + % endif + % if object.event_id.address_id.street2: +
${object.event_id.address_id.street2}
+ % set location = '%s, %s' % (location, object.event_id.address_id.street2) + % endif +
+ % if object.event_id.address_id.city: + ${object.event_id.address_id.city}, + % set location = '%s, %s' % (location, object.event_id.address_id.city) + % endif + % if object.event_id.address_id.state_id.name: + ${object.event_id.address_id.state_id.name}, + % set location = '%s, %s' % (location, object.event_id.address_id.state_id.name) + % endif + % if object.event_id.address_id.zip: + ${object.event_id.address_id.zip} + % set location = '%s, %s' % (location, object.event_id.address_id.zip) + % endif +
+ % if object.event_id.address_id.country_id.name: +
${object.event_id.address_id.country_id.name}
+ % set location = '%s, %s' % (location, object.event_id.address_id.country_id.name) + % endif + % endif +
+
+ % if event_organizer +
+ % endif +
+ + % if event_organizer: +
+ Questions about this event? +
Please contact the organizer:
+
    +
  • ${event_organizer.name}
  • + % if event_organizer.email +
  • Mail: ${event_organizer.email}
  • + % endif + % if event_organizer.phone +
  • Phone: ${event_organizer.phone}
  • + % endif +
+
+ % endif +
+ + % if is_online or event_address: +
+ % endif +
+ + % if is_online: +
+ Get the best mobile experience. + Install our mobile app +
+ % endif +
+ + % if is_online and event_address: +
+ % endif +
+ + % if event_address: +
+
+ + Google Maps + +
+
+ % endif +
+
+
+ % if object.company_id + + +
+ Sent by ${object.company_id.name} + % if 'website_url' in object.event_id and object.event_id.website_url: +
+ Discover all our events. + % endif +
+ % endif +
+
+ ${object.partner_id.lang} +
+ +
+
-- cgit v1.2.3