Making things look better. Now with a person look up for the presenter record. Wrapping up for the day.

This commit is contained in:
Scott Idem
2024-06-26 18:19:17 -04:00
parent 4d7e48a170
commit 20e1c46461
4 changed files with 239 additions and 20 deletions

View File

@@ -102,14 +102,29 @@ $: if ($events_trigger == 'load__event_session_obj_li' && $events_slct.event_id)
$events_trigger = null;
if (!$events_sess.pres_mgmt.fulltext_search_qry_str || $events_sess?.pres_mgmt.fulltext_search_qry_str.length <= 1 ) {
if ( $ae_loc.administrator_access ) {
console.log('Administrator access search');
handle_search__event_session($events_sess.pres_mgmt.fulltext_search_qry_str);
} else if ( $ae_loc.trusted_access ) {
console.log('Trusted access search');
handle_search__event_session($events_sess.pres_mgmt.fulltext_search_qry_str);
} else if (!$events_sess.pres_mgmt.fulltext_search_qry_str || $events_sess?.pres_mgmt.fulltext_search_qry_str.length <= 1 ) {
$events_slct.session_obj_li = [];
// $events_sess.pres_mgmt.fulltext_search_qry_str = '';
// return false;
} else {
handle_search__event_session($events_sess.pres_mgmt.fulltext_search_qry_str);
}
}
function handle_search__event_session(search_str: string) {
console.log('handle_search__event_session()');
// let type_code = $events_sess.pres_mgmt.search_badge_type_code;
let search_str = $events_sess.pres_mgmt.fulltext_search_qry_str.trim();
// let search_str = $events_sess.pres_mgmt.fulltext_search_qry_str.trim();
let search_method = 'lk'; // 'ft', 'lk', 'eq'
let ft_search_str_new = '';
let lk_search_str_new = '';
@@ -199,7 +214,7 @@ $: if ($events_trigger == 'load__event_session_obj_li' && $events_slct.event_id)
});
}
} // end if search string is valid
// } // end if search string is valid
}
@@ -353,8 +368,21 @@ $: if ($events_trigger == 'load__event_session_obj_li' && $events_slct.event_id)
{#if $events_slct?.session_obj_li && $events_slct.session_obj_li.length > 0}
<section class="ae_h_scrollfix">
<h2 class="h3">Results:</h2>
<section class="ae_h_scrollfix py-2 space-y-2">
<h2 class="h3">
<span class="text-md">
Results:
</span>
{#if $events_slct.session_obj_li.length}
<span class="text-3xl font-bold bg-success-100 px-4 border rounded-lg border-success-500"
title="Count {$events_slct.session_obj_li.length ?? 'None'}"
>
<span class="fas fa-list-ol mx-4"></span>
{$events_slct.session_obj_li.length ?? 'None'}
</span>
{/if}
</h2>
<table class="table">
<thead>
<tr>