Documentation for what reason?
This commit is contained in:
@@ -728,9 +728,10 @@ async function handle_update__sponsorship({
|
||||
}
|
||||
|
||||
function send_init_confirm_email() {
|
||||
console.log(`*** send_init_confirm_email() *** to ${$slct.sponsorship_obj.poc_json.email}.`)
|
||||
let subject = `CHOW 2024 Sponsor Hub Link for ${$slct.sponsorship_obj.name} (ID: ${$slct.sponsorship_id})`;
|
||||
|
||||
let body_html = `<p>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:</p><p>Name: ${$slct.sponsorship_obj.name} (Sponsor ID: ${$slct.sponsorship_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.sponsorships.link}">${$ae_loc.mod.sponsorships.link}</a></p>`
|
||||
let body_html = `<p>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:</p><p>Name: ${$slct.sponsorship_obj.name} (Sponsor ID: ${$slct.sponsorship_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.sponsorships.link}">${$ae_loc.mod.sponsorships.link}</a></p>`
|
||||
|
||||
api.send_email({
|
||||
api_cfg: $ae_api,
|
||||
@@ -740,7 +741,20 @@ function send_init_confirm_email() {
|
||||
subject: subject,
|
||||
body_html: body_html,
|
||||
});
|
||||
}
|
||||
|
||||
function send_confirm_email() {
|
||||
let subject = `CHOW 2024 Sponsor Hub Link for ${$slct.sponsorship_obj.name} (ID: ${$slct.sponsorship_id})`;
|
||||
let body_html = `<p>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:</p><p>Level: ${$slct.sponsorship_obj.level_str}</p><p>Name: ${$slct.sponsorship_obj.name} (Sponsor ID: ${$slct.sponsorship_id})</p><p>POC: ${$slct.sponsorship_obj.poc_json.full_name} (${$slct.sponsorship_obj.poc_json.email})</p><p>Use this link to view or update your CHOW 2024 sponsorship information.<p>Copy and paste link: <a href="${$ae_loc.mod.sponsorships.link}">${$ae_loc.mod.sponsorships.link}</a></p>`;
|
||||
|
||||
api.send_email({
|
||||
api_cfg: $ae_api,
|
||||
from_email: 'noreply+chow@oneskyit.com',
|
||||
from_name: 'CHOW 2024 Sponsor Hub',
|
||||
to_email: $slct.sponsorship_obj.poc_json.email,
|
||||
subject: subject,
|
||||
body_html: body_html,
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -2300,25 +2314,13 @@ function send_init_confirm_email() {
|
||||
|
||||
<button
|
||||
class="btn variant-soft-secondary mx-1"
|
||||
disabled={(!$slct.sponsorship_obj.poc_json.email)}
|
||||
disabled={($slct.sponsorship_obj.poc_json && !$slct.sponsorship_obj.poc_json.email)}
|
||||
title="Send confirmation email to POC"
|
||||
on:click={async () => {
|
||||
if (!confirm(`Are you sure you want to send this email to ${$slct.sponsorship_obj.poc_json.email}?`)) {return false;}
|
||||
|
||||
let subject = `CHOW 2024 Sponsor Hub Link for ${$slct.sponsorship_obj.name} (ID: ${$slct.sponsorship_id})`;
|
||||
let body_html = `<p>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:</p><p>Level: ${$slct.sponsorship_obj.level_str}</p><p>Name: ${$slct.sponsorship_obj.name} (Sponsor ID: ${$slct.sponsorship_id})</p><p>POC: ${$slct.sponsorship_obj.poc_json.full_name} (${$slct.sponsorship_obj.poc_json.email})</p><p>Use this link to view or update your CHOW 2024 sponsorship information.<p>Copy and paste link: <a href="${$ae_loc.mod.sponsorships.link}">${$ae_loc.mod.sponsorships.link}</a></p>`;
|
||||
|
||||
await api.send_email({
|
||||
api_cfg: $ae_api,
|
||||
from_email: 'noreply+chow@oneskyit.com',
|
||||
from_name: 'CHOW 2024 Sponsor Hub',
|
||||
to_email: $slct.sponsorship_obj.poc_json.email,
|
||||
subject: subject,
|
||||
body_html: body_html,
|
||||
});
|
||||
$ae_sess.mod.sponsorships.submit_status = 'sending email';
|
||||
|
||||
|
||||
send_confirm_email();
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-paper-plane mx-1
|
||||
|
||||
@@ -246,13 +246,11 @@ $: if (testing) {
|
||||
{@html $ae_loc.ds.hub__page__sponsorships__create_info_header}
|
||||
{:else}
|
||||
<header>
|
||||
<h1 class="h1">Information Goes Here</h1>
|
||||
<h1 class="h1">Sponsor Hub Info Goes Here</h1>
|
||||
</header>
|
||||
{/if}
|
||||
|
||||
<!-- <section class="btn btn-group"> -->
|
||||
|
||||
|
||||
<section>
|
||||
{#if $slct.sponsorship_id}
|
||||
<button
|
||||
class="btn variant-ghost-primary w-96"
|
||||
@@ -269,7 +267,7 @@ $: if (testing) {
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-edit mx-1"></span>
|
||||
Edit Sponsorship {$slct.sponsorship_id}
|
||||
Edit Sponsor {$slct.sponsorship_id}
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
@@ -290,14 +288,14 @@ $: if (testing) {
|
||||
Start Sponsor Submission Form
|
||||
</button>
|
||||
{/if}
|
||||
<!-- </section> -->
|
||||
</section>
|
||||
|
||||
{#if $ae_loc.ds.hub__page__sponsorships__create_info}
|
||||
{@html $ae_loc.ds.hub__page__sponsorships__create_info}
|
||||
{:else}
|
||||
<section>
|
||||
<div class="alert alert-info">
|
||||
More information goes here.
|
||||
More information can go here or this can be hidden.
|
||||
</div>
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user