Clean up based on notes. Adding some JSON event config options for presenter agree and presenter bio.

This commit is contained in:
Scott Idem
2024-08-16 10:06:16 -04:00
parent 7d167444c4
commit fed5d2de65
6 changed files with 71 additions and 45 deletions

View File

@@ -43,6 +43,8 @@ if (!$events_sess.pres_mgmt) {
$events_sess.pres_mgmt.show_content__agree_text = false;
$events_sess.pres_mgmt.show_content__presenter_start = false;
export let lq__event_obj: any;
export let lq__event_session_obj: any;
// let lq__event_session_obj = liveQuery(
@@ -281,9 +283,10 @@ $: if ($lq__event_session_obj) {
</li>
<li>
<strong class="text-sm">Location/Room:</strong>
<!-- {$lq__event_session_obj.event_location_id_random} -->
{#if $ae_loc.trusted_access}
<a
href="/events_pres_mgmt/launcher/{$lq__event_session_obj.event_location_id_random}"
href="/events_pres_mgmt/launcher/{$lq__event_session_obj.event_id_random}"
class="text-blue-500 hover:text-blue-800 hover:underline"
title="Launcher: {$lq__event_session_obj?.event_location_name} {$lq__event_session_obj?.event_location_id_random}"
>
@@ -718,6 +721,9 @@ $: if ($lq__event_session_obj) {
{#if $ae_loc.trusted_access || $events_loc.auth__kv.session[$events_slct.event_session_id] || ($events_loc.auth__kv.presenter[$events_slct.event_presenter_id] && $lq__event_presenter_obj?.agree)}
<div class="min-w-max flex flex-col gap-1">
<!-- The account_id should not be hardcoded! -->
{#if $lq__event_session_obj?.account_id_random == 'xFP7AhU8Zlc'}
<!-- This styling took a while and finally looks good on most sized screens. -->
<a
class="btn btn-md variant-ghost-primary hover:variant-filled-primary flex flex-row items-center justify-between max-w-xs md:max-w-full text-wrap md:text-nowrap"
@@ -741,6 +747,9 @@ $: if ($lq__event_session_obj) {
LCI Speaker and Champion Congress Task List (Excel)
</span>
</a>
{:else}
<p>Please select your name below to upload presentation files.</p>
{/if}
</div>
{:else}
@@ -1003,6 +1012,7 @@ $: if ($lq__event_session_obj) {
<!-- Show presenters for this presentation -->
{#if event_presentation_obj.event_presentation_id_random}
<Comp_event_presenter_obj_li
lq__event_obj={lq__event_obj}
link_to_type={'event_presentation'}
link_to_id={event_presentation_obj.event_presentation_id_random}
>