Done for the night...

This commit is contained in:
Scott Idem
2024-03-01 19:02:05 -05:00
parent 9fe4c51a67
commit f09577d1d5

View File

@@ -258,6 +258,11 @@ async function handle_submit_form(event) {
}
// Marketing for social media and email related questions
if (typeof sponsorship_di.website_url !== 'undefined') {
// This is also stored under social_li_json.
sponsorship_do['website_url'] = sponsorship_di.website_url;
}
if (sponsorship_di.social_media_facebook || sponsorship_di.social_media_twitter || sponsorship_di.social_media_instagram || sponsorship_di.social_media_linkedin) {
sponsorship_do['social_li_json'] = {
facebook: sponsorship_di.social_media_facebook,
@@ -694,12 +699,18 @@ async function handle_update__sponsorship({
>
<Tab bind:group={$store_current_tab} name="tab_start" value={'start'}>
<svelte:fragment slot="lead"><span class="fas fa-home"></span></svelte:fragment>
{#if $slct.sponsorship_obj.sponsorship_id_random}
<span class="fas fa-check text-green-500"></span>
{/if}
<!-- Start -->
General Info
</Tab>
<!-- Marketing for social media and email Level 1 and above with other restrictions -->
<Tab bind:group={$store_current_tab} name="tab_marketing" value={'marketing'} disabled={!$slct.sponsorship_id || $slct.sponsorship_obj.level_num < 1}>
<svelte:fragment slot="lead"><span class="fas fa-bullhorn"></span></svelte:fragment>
{#if $slct.sponsorship_obj.website_url}
<span class="fas fa-check text-green-500"></span>
{/if}
Marketing
</Tab>
<!-- Exhibit Level 2 and above -->
@@ -715,6 +726,9 @@ async function handle_update__sponsorship({
</Tab>
<Tab bind:group={$store_current_tab} name="tab_files" value={'files'} disabled={!$slct.sponsorship_id}>
<svelte:fragment slot="lead"><span class="fas fa-file-upload"></span></svelte:fragment>
{#if $slct.sponsorship_obj.logo_li_json && $slct.sponsorship_obj.logo_li_json.primary && $slct.sponsorship_obj.logo_li_json.primary.hosted_file_id_random}
<span class="fas fa-check text-green-500"></span>
{/if}
File Uploads
</Tab>
<Tab bind:group={$store_current_tab} name="tab_gala_guests" value={'gala_guests'} disabled={!$slct.sponsorship_id}>