diff --git a/src/routes/events_speakers/10_edit_modal__event_presenter_obj.svelte b/src/routes/events_speakers/10_edit_modal__event_presenter_obj.svelte
index c0b87987..f48c2679 100644
--- a/src/routes/events_speakers/10_edit_modal__event_presenter_obj.svelte
+++ b/src/routes/events_speakers/10_edit_modal__event_presenter_obj.svelte
@@ -483,7 +483,25 @@ function send_init_confirm_email() {
let subject = `CHOW 2024 Speaker Hub Link for ${$slct.event_presenter_obj.full_name} (ID: ${$slct.event_presenter_id})`;
- let body_html = `
Thank you for your submission to the Speaker Hub. You are an integral part of Capitol Hill Ocean Week and we appreciate your participation. If you need to make any changes or updates to your submission, you may access it via the below hyperlink:
Name: ${$slct.event_presenter_obj.full_name} (Speaker ID: ${$slct.event_presenter_id})
Use this link to view or update your CHOW 2024 speaker information.
Copy and paste link: ${$ae_loc.mod.events.presenter_link}
`;
+ let body_html = `
+ ${$slct.event_presenter_obj.full_name},
+
Thank you for your submission to the Capitol Hill Ocean Week Speaker Hub. You are an integral part of Capitol Hill Ocean Week and we appreciate your participation. If you need to make any changes or updates to your submission, you may access it via the link below.
+
+
+
+ Name: ${$slct.event_presenter_obj.full_name}
+ Professional title: ${$slct.event_presenter_obj.professional_title}
+ Affiliations: ${$slct.event_presenter_obj.affiliations}
+ Email: ${$slct.event_presenter_obj.email}
+
+
+
+
+
+ CHOW 2024 Speaker ID: ${$slct.event_presenter_id}
+
Use this link to view or update your CHOW 2024 speaker information.
+ Copy and paste link: ${$ae_loc.mod.events.presenter_link}
+
`;
api.send_email({
api_cfg: $ae_api,
@@ -498,7 +516,32 @@ function send_init_confirm_email() {
function send_summary_email() {
let subject = `CHOW 2024 Speaker Hub Link for ${$slct.event_presenter_obj.full_name} (ID: ${$slct.event_presenter_id})`;
- let body_html = `Thank you for your submission to the Speaker Hub. You are an integral part of Capitol Hill Ocean Week and we appreciate your participation. If you need to make any changes or updates to your submission, you may access it via the link below.
Name: ${$slct.event_presenter_obj.full_name} (ID: ${$slct.event_presenter_id})
Professional title: ${$slct.event_presenter_obj.professional_title}
Affiliations: ${$slct.event_presenter_obj.affiliations}
Email: ${$slct.event_presenter_obj.email}
Biography:
${$slct.event_presenter_obj.biography} Headshot:
${placeholder_li.image_headshot}
Use this link to view or update your CHOW 2024 speaker information.
Copy and paste link: ${$ae_loc.mod.events.presenter_link}
`;
+ let body_html = `
+ ${$slct.event_presenter_obj.full_name},
+
Thank you for your submission to the Capitol Hill Ocean Week Speaker Hub. You are an integral part of Capitol Hill Ocean Week and we appreciate your participation. If you need to make any changes or updates to your submission, you may access it via the link below.
+
+
+
+ Name: ${$slct.event_presenter_obj.full_name}
+ Professional title: ${$slct.event_presenter_obj.professional_title}
+ Affiliations: ${$slct.event_presenter_obj.affiliations}
+ Email: ${$slct.event_presenter_obj.email}
+
+
+ Biography:
${$slct.event_presenter_obj.biography}
+
+
+
+ Headshot:
${placeholder_li.image_headshot}
+
+
+
+
+
+ CHOW 2024 Speaker ID: ${$slct.event_presenter_id}
+
Use this link to view or update your CHOW 2024 speaker information.
+ Copy and paste link: ${$ae_loc.mod.events.presenter_link}
+
`;
api.send_email({
api_cfg: $ae_api,
@@ -1079,7 +1122,7 @@ async function handle_delete_event_presenter_obj({event_presenter_id, hosted_fil
$slct.event_presenter_id = null;
$slct.event_presenter_obj = {};
}}
- class="btn variant-glass-warning mx-1 text-xs" type="button"
+ class="btn btn-sm variant-glass-warning mx-1" type="button"
title="Delete record permanently"
>
Delete
@@ -1093,7 +1136,7 @@ async function handle_delete_event_presenter_obj({event_presenter_id, hosted_fil
$slct.event_presenter_id = null;
$slct.event_presenter_obj = {};
}}
- class="btn variant-glass-warning mx-1 text-xs" type="button"
+ class="btn btn-sm variant-glass-warning mx-1" type="button"
title="Disable record to delete"
>
Delete
@@ -1107,7 +1150,7 @@ async function handle_delete_event_presenter_obj({event_presenter_id, hosted_fil
$slct.event_presenter_id = null;
$slct.event_presenter_obj = {};
}}
- class="btn variant-glass-warning mx-1 text-xs" type="button"
+ class="btn btn-sm variant-glass-warning mx-1" type="button"
title="Hide record to delete"
>
Delete
@@ -1116,7 +1159,7 @@ async function handle_delete_event_presenter_obj({event_presenter_id, hosted_fil
{/if}
diff --git a/src/routes/sponsorships/10_edit_modal__sponsorship_obj.svelte b/src/routes/sponsorships/10_edit_modal__sponsorship_obj.svelte
index 98ac1c47..9994df0a 100644
--- a/src/routes/sponsorships/10_edit_modal__sponsorship_obj.svelte
+++ b/src/routes/sponsorships/10_edit_modal__sponsorship_obj.svelte
@@ -91,6 +91,8 @@ if ($slct.sponsorship_id) {
// promo_video: null,
},
+ website_url: 'https://',
+
social_li_json: null,
guest_li_json: null,
@@ -827,7 +829,25 @@ function send_init_confirm_email() {
let subject = `CHOW 2024 Sponsor Hub Link for ${$slct.sponsorship_obj.name} (ID: ${$slct.sponsorship_id})`;
- let body_html = `Thank you for your submission to the Sponsorship Hub. You are an integral part of Capitol Hill Ocean Week and we appreciate your participation. If you need to make any changes or updates to your submission, you may access it via the below hyperlink:
Name: ${$slct.sponsorship_obj.name} (Sponsor ID: ${$slct.sponsorship_id})
Use this link to view or update your CHOW 2024 speaker information.
Copy and paste link: ${$ae_loc.mod.sponsorships.link}
`;
+ let body_html = `
+ ${$slct.sponsorship_obj.poc_json.full_name},
+
Thank you for your submission to the Capitol Hill Ocean Week Sponsor Hub. You are an integral part of Capitol Hill Ocean Week, and we appreciate your participation. If you need to make any changes or updates to your submission, you may access it via via the link below.
+
+
+
+ Sponsorship Level: ${$slct.sponsorship_obj.level_str}
+ Organization/Individual Name: ${$slct.sponsorship_obj.name}
+ Mailing Address: ${$slct.sponsorship_obj.address_li_json.mailing.line_1}, ${$slct.sponsorship_obj.address_li_json.mailing.city}, ${$slct.sponsorship_obj.address_li_json.mailing.state_province} ${$slct.sponsorship_obj.address_li_json.mailing.postal_code}
+ Point of Contact: ${$slct.sponsorship_obj.poc_json.full_name} (${$slct.sponsorship_obj.poc_json.email})
+
+
+
+
+
+ CHOW 2024 Sponsor ID: ${$slct.sponsorship_id}
+
Use this link to view or update your CHOW 2024 sponsorship information and Ocean Awards Gala guest list.
+ Copy and paste link: ${$ae_loc.mod.sponsorships.link}
+
`;
api.send_email({
api_cfg: $ae_api,
@@ -840,8 +860,41 @@ function send_init_confirm_email() {
}
function send_confirm_email() {
+
+ let guest_li_html = null;
+ if ($slct.sponsorship_obj.guest_li_json) {
+ guest_li_html = '';
+ let guest_li = $slct.sponsorship_obj.guest_li_json;
+
+ for (let i = 0; i < guest_li.length; i++) {
+ let guest_str = `${guest_li[i].given_name} ${guest_li[i].family_name} ${guest_li[i].title} `;
+ guest_li_html += guest_str;
+ }
+ guest_li_html += ' ';
+ }
+
let subject = `CHOW 2024 Sponsor Hub Link for ${$slct.sponsorship_obj.name} (ID: ${$slct.sponsorship_id})`;
- let body_html = `Thank you for your submission to the Sponsorships Hub. You are an integral part of Capitol Hill Ocean Week and we appreciate your participation. If you need to make any changes or updates to your submission, you may access it via the below hyperlink:
Level: ${$slct.sponsorship_obj.level_str}
Name: ${$slct.sponsorship_obj.name} (Sponsor ID: ${$slct.sponsorship_id})
POC: ${$slct.sponsorship_obj.poc_json.full_name} (${$slct.sponsorship_obj.poc_json.email})
Use this link to view or update your CHOW 2024 sponsorship information.
Copy and paste link: ${$ae_loc.mod.sponsorships.link}
`;
+
+ let body_html = `
+ Thank you for your submission to the Capitol Hill Ocean Week Sponsor Hub. You are an integral part of Capitol Hill Ocean Week, and we appreciate your participation. If you need to make any changes or updates to your submission, you may access it via via the link below.
+
+
+ Sponsorship Level: ${$slct.sponsorship_obj.level_str}
+ Organization/Individual Name: ${$slct.sponsorship_obj.name}
+ Mailing Address: ${$slct.sponsorship_obj.address_li_json.mailing.line_1}, ${$slct.sponsorship_obj.address_li_json.mailing.city}, ${$slct.sponsorship_obj.address_li_json.mailing.state_province} ${$slct.sponsorship_obj.address_li_json.mailing.postal_code}
+ Point of Contact: ${$slct.sponsorship_obj.poc_json.full_name} (${$slct.sponsorship_obj.poc_json.email})
+
+
+ ${guest_li_html ? `Guests: ${guest_li_html}
` : 'Guests: -- No Guests Added --
'}
+
+
+
+
+ CHOW 2024 Sponsor ID: ${$slct.sponsorship_id}
+
Use this link to view or update your CHOW 2024 sponsorship information and Ocean Awards Gala guest list.
+ Copy and paste link: ${$ae_loc.mod.sponsorships.link}
+
+ `;
api.send_email({
api_cfg: $ae_api,
@@ -1019,7 +1072,7 @@ async function handle_delete_sponsorship_obj({sponsorship_id, hosted_file_id=nul
regionTab={!$slct.sponsorship_id || $slct.sponsorship_obj.level_num < 1 ? 'text-slate-400' : ''}
>
- {#if $slct.sponsorship_obj.website_url && $slct.sponsorship_obj.website_url.length > 10}
+ {#if $slct.sponsorship_obj.website_url && $slct.sponsorship_obj.website_url.length > 10 && $slct.sponsorship_obj.website_url.startsWith('http')}
{/if}
@@ -1594,8 +1647,10 @@ async function handle_delete_sponsorship_obj({sponsorship_id, hosted_file_id=nul
-
+
+
+ The URLs should begin with "https://" or "http://"
@@ -2479,7 +2534,7 @@ async function handle_delete_sponsorship_obj({sponsorship_id, hosted_file_id=nul
// $slct.sponsorship_id = null;
// $slct.sponsorship_obj = {};
}}
- class="btn variant-glass-warning mx-1"
+ class="btn btn-sm variant-glass-warning mx-1"
class:hidden={!$ae_loc.administrator_access}
title="CURRENTLY DISABLED: Delete record permanently"
>
@@ -2487,7 +2542,7 @@ async function handle_delete_sponsorship_obj({sponsorship_id, hosted_file_id=nul
@@ -2496,7 +2551,7 @@ async function handle_delete_sponsorship_obj({sponsorship_id, hosted_file_id=nul
{