Making things look nicer and more complete.

This commit is contained in:
Scott Idem
2024-03-12 14:29:16 -04:00
parent a5431070d3
commit 7d1a4b735b
2 changed files with 111 additions and 13 deletions

View File

@@ -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 = `<p>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:</p><p>Name: ${$slct.event_presenter_obj.full_name} (Speaker ID: ${$slct.event_presenter_id})</p><p>Use this link to view or update your CHOW 2024 speaker information.<p>Copy and paste link: <a href="${$ae_loc.mod.events.presenter_link}">${$ae_loc.mod.events.presenter_link}</a></p>`;
let body_html = `
<div>${$slct.event_presenter_obj.full_name},
<p>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.</p>
</div>
<div>
Name: ${$slct.event_presenter_obj.full_name}<br>
Professional title: ${$slct.event_presenter_obj.professional_title}<br>
Affiliations: ${$slct.event_presenter_obj.affiliations}<br>
Email: ${$slct.event_presenter_obj.email}
</div>
<br>
<div>
CHOW 2024 Speaker ID: ${$slct.event_presenter_id}<br>
<p>Use this link to view or update your CHOW 2024 speaker information.<br>
Copy and paste link: <a href="${$ae_loc.mod.events.presenter_link}">${$ae_loc.mod.events.presenter_link}</a></p>
</div>`;
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 = `<p>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.</p><p>Name: ${$slct.event_presenter_obj.full_name} (ID: ${$slct.event_presenter_id})</p><p>Professional title: ${$slct.event_presenter_obj.professional_title}</p><p>Affiliations: ${$slct.event_presenter_obj.affiliations}</p><p>Email: ${$slct.event_presenter_obj.email}</p><div>Biography:<pre class="biography pre_wrap">${$slct.event_presenter_obj.biography}</pre></div> <div>Headshot:<div style="max-width: 20em">${placeholder_li.image_headshot}</div></div> <p>Use this link to view or update your CHOW 2024 speaker information.<p>Copy and paste link: <a href="${$ae_loc.mod.events.presenter_link}">${$ae_loc.mod.events.presenter_link}</a></p>`;
let body_html = `
<div>${$slct.event_presenter_obj.full_name},
<p>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.</p>
</div>
<div>
Name: ${$slct.event_presenter_obj.full_name}<br>
Professional title: ${$slct.event_presenter_obj.professional_title}<br>
Affiliations: ${$slct.event_presenter_obj.affiliations}<br>
Email: ${$slct.event_presenter_obj.email}
</div>
<div>Biography:<pre class="text-wrap">${$slct.event_presenter_obj.biography}</pre>
</div>
<div>
Headshot:<div style="max-width: 20em">${placeholder_li.image_headshot}</div>
</div>
<br>
<div>
CHOW 2024 Speaker ID: ${$slct.event_presenter_id}<br>
<p>Use this link to view or update your CHOW 2024 speaker information.<br>
Copy and paste link: <a href="${$ae_loc.mod.events.presenter_link}">${$ae_loc.mod.events.presenter_link}</a></p>
</div>`;
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"
>
<span class="fas fa-minus mx-1"></span> 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"
>
<span class="fas fa-minus mx-1"></span> 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"
>
<span class="fas fa-comment-slash mx-1"></span> Delete
@@ -1116,7 +1159,7 @@ async function handle_delete_event_presenter_obj({event_presenter_id, hosted_fil
{/if}
<button
class="btn variant-soft-secondary"
class="btn btn-sm variant-soft-secondary mx-1"
use:clipboard={$ae_loc.mod.events.presenter_link}
title={`Copy link to this speaker submission (ID: ${$slct.event_presenter_id})`}
>