Cleaned up the menus. Added new options for max qry limits.
This commit is contained in:
@@ -95,10 +95,10 @@ let events_local_data_struct: key_val = {
|
||||
|
||||
// Event Presentation Launcher (and native Electron app)
|
||||
'launcher': {
|
||||
qry_max__sessions: 75,
|
||||
qry_max__presentations: 25,
|
||||
qry_max__presenters: 75,
|
||||
qry_max__files: 75,
|
||||
qry_limit__sessions: 75,
|
||||
qry_limit__presentations: 25,
|
||||
qry_limit__presenters: 75,
|
||||
qry_limit__files: 75,
|
||||
|
||||
show_content__disabled_files: false,
|
||||
show_content__hidden_files: false,
|
||||
@@ -180,6 +180,8 @@ let events_local_data_struct: key_val = {
|
||||
qry_limit__sessions: 75,
|
||||
qry_max: 500, // This is the max number the limit is allowed to be set to.
|
||||
|
||||
qry_and__file_count: true, // Essentially it should be greater than 0
|
||||
|
||||
// show_content__agree_text: false,
|
||||
show_content__presentation_description: false,
|
||||
show_content__presenter_page_help: true,
|
||||
@@ -203,6 +205,7 @@ let events_local_data_struct: key_val = {
|
||||
show_menu__presenter: null,
|
||||
show_menu__session: null,
|
||||
show_menu__session_search: null,
|
||||
show_menu__event_reports: null,
|
||||
|
||||
show_report__presenters_agree: false,
|
||||
show_report__recent_files: false,
|
||||
@@ -367,10 +370,10 @@ let events_session_data_struct: key_val = {
|
||||
new_upload_list: null,
|
||||
files_uploading_count: null,
|
||||
|
||||
qry_max__sessions: 75,
|
||||
qry_max__presentations: 25,
|
||||
qry_max__presenters: 75,
|
||||
qry_max__files: 75,
|
||||
qry_limit__sessions: 75,
|
||||
qry_limit__presentations: 25,
|
||||
qry_limit__presenters: 75,
|
||||
qry_limit__files: 75,
|
||||
|
||||
show_fields__presentation: true,
|
||||
show_fields__session: true,
|
||||
|
||||
@@ -218,7 +218,7 @@ export let ae_app_session_data_struct: key_val = {
|
||||
'person': {
|
||||
show_report__person_li: false,
|
||||
|
||||
qry_max__people: 100,
|
||||
qry_limit__people: 100,
|
||||
},
|
||||
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ let person_id_random_li: string[] = [];
|
||||
console.log('Edit the POC person for the session.');
|
||||
|
||||
let params = {
|
||||
qry__limit: $ae_sess.person.qry_max__people,
|
||||
qry__limit: $ae_sess.person.qry_limit__people,
|
||||
}
|
||||
|
||||
// $slct.person_obj_li = await core_func.handle_load_ae_obj_li__person({api_cfg: $ae_api, account_id: $slct.account_id, params: params});
|
||||
@@ -177,11 +177,11 @@ let person_id_random_li: string[] = [];
|
||||
|
||||
<label
|
||||
class="text-sm"
|
||||
for="qry_max__people">Max results:
|
||||
for="qry_limit__people">Max results:
|
||||
|
||||
<select
|
||||
id="qry_max__people"
|
||||
bind:value={$ae_sess.person.qry_max__people}
|
||||
id="qry_limit__people"
|
||||
bind:value={$ae_sess.person.qry_limit__people}
|
||||
on:change={() => {
|
||||
core_func.handle_load_ae_obj_li__person({
|
||||
api_cfg: $ae_api,
|
||||
@@ -189,7 +189,7 @@ let person_id_random_li: string[] = [];
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $ae_sess.person.qry_max__people,},
|
||||
'qry__limit': $ae_sess.person.qry_limit__people,},
|
||||
log_lvl: 1,
|
||||
})
|
||||
.then(function (load_results) {
|
||||
|
||||
@@ -69,7 +69,7 @@ $ae_loc.person.show_content__person_page_help = false;
|
||||
|
||||
<div
|
||||
class="core__person_view_menu {ae_snip.classes__core_menu}"
|
||||
class:border-none={!$ae_loc.person.show_content__person_page_help}
|
||||
class:border-gray-100={!$ae_loc.person.show_content__person_page_help}
|
||||
>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -198,10 +198,10 @@ function process_search_string(search_str: string) {
|
||||
console.log(`"${search_str}"`);
|
||||
|
||||
let params = {
|
||||
'qry__enabled': $events_loc.pres_mgmt.qry_enabled ?? 'enabled',
|
||||
'qry__hidden': $events_loc.pres_mgmt.qry_hidden ?? 'not_hidden',
|
||||
'qry__limit': $events_loc.pres_mgmt.qry_limit__session ?? 35,
|
||||
}
|
||||
'qry__enabled': $events_loc.pres_mgmt.qry_enabled ?? 'enabled',
|
||||
'qry__hidden': $events_loc.pres_mgmt.qry_hidden ?? 'not_hidden',
|
||||
'qry__limit': $events_loc.pres_mgmt.qry_limit__session ?? 35,
|
||||
}
|
||||
|
||||
// if ($ae_loc.administrator_access) {
|
||||
// params['qry__enabled'] = 'all';
|
||||
|
||||
@@ -307,7 +307,7 @@ async function handle_search__event_presenter(
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_max__presenters,},
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_limit__presenters,},
|
||||
try_cache: false,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
@@ -338,7 +338,7 @@ async function handle_search__event_presenter(
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_max__presenters,},
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_limit__presenters,},
|
||||
try_cache: false,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
@@ -367,9 +367,10 @@ async function handle_search__event_presenter(
|
||||
ft_search_str: '',
|
||||
lk_search_str: '',
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_max__files,},
|
||||
'qry__enabled': $events_loc.pres_mgmt.qry_enabled ?? 'enabled',
|
||||
'qry__hidden': $events_loc.pres_mgmt.qry_hidden ?? 'not_hidden',
|
||||
'qry__limit': $events_loc.pres_mgmt.qry_limit__files ?? 35,
|
||||
},
|
||||
try_cache: false,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
@@ -412,12 +413,12 @@ async function handle_search__event_presenter(
|
||||
<h3 class="h4 text-center">Presenters Agreed</h3>
|
||||
<label
|
||||
class="text-sm"
|
||||
for="qry_max__presenters">Max results:
|
||||
for="qry_limit__presenters">Max results:
|
||||
|
||||
<!-- <input
|
||||
type="number"
|
||||
id="qry_max__presenters"
|
||||
bind:value={$events_sess.pres_mgmt.qry_max__presenters}
|
||||
id="qry_limit__presenters"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__presenters}
|
||||
on:change={() => {
|
||||
handle_search__event_presenter({
|
||||
api_cfg: $ae_api,
|
||||
@@ -429,7 +430,7 @@ async function handle_search__event_presenter(
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_max__presenters,},
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_limit__presenters,},
|
||||
try_cache: false,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
@@ -439,8 +440,8 @@ async function handle_search__event_presenter(
|
||||
> -->
|
||||
|
||||
<select
|
||||
id="qry_max__presenters"
|
||||
bind:value={$events_sess.pres_mgmt.qry_max__presenters}
|
||||
id="qry_limit__presenters"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__presenters}
|
||||
on:change={() => {
|
||||
handle_search__event_presenter({
|
||||
api_cfg: $ae_api,
|
||||
@@ -452,7 +453,7 @@ async function handle_search__event_presenter(
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_max__presenters,},
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_limit__presenters,},
|
||||
try_cache: false,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
@@ -481,11 +482,11 @@ async function handle_search__event_presenter(
|
||||
<h3 class="h4 text-center">Presenters with Bios</h3>
|
||||
<label
|
||||
class="text-sm"
|
||||
for="qry_max__presenters">Max results:
|
||||
for="qry_limit__presenters">Max results:
|
||||
|
||||
<!-- <input
|
||||
type="number"
|
||||
bind:value={$events_sess.pres_mgmt.qry_max__presenters}
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__presenters}
|
||||
on:change={() => {
|
||||
handle_search__event_presenter({
|
||||
api_cfg: $ae_api,
|
||||
@@ -497,7 +498,7 @@ async function handle_search__event_presenter(
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_max__presenters,},
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_limit__presenters,},
|
||||
try_cache: false,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
@@ -507,8 +508,8 @@ async function handle_search__event_presenter(
|
||||
> -->
|
||||
|
||||
<select
|
||||
id="qry_max__presenters"
|
||||
bind:value={$events_sess.pres_mgmt.qry_max__presenters}
|
||||
id="qry_limit__presenters"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__presenters}
|
||||
on:change={() => {
|
||||
handle_search__event_presenter({
|
||||
api_cfg: $ae_api,
|
||||
@@ -520,7 +521,7 @@ async function handle_search__event_presenter(
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_max__presenters,},
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_limit__presenters,},
|
||||
try_cache: false,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
@@ -549,12 +550,12 @@ async function handle_search__event_presenter(
|
||||
<h3 class="h4 text-center">Recent File Uploads</h3>
|
||||
<label
|
||||
class="text-sm"
|
||||
for="qry_max__files">Max results:
|
||||
for="qry_limit__files">Max results:
|
||||
|
||||
<!-- <input
|
||||
type="number"
|
||||
id="qry_max__files"
|
||||
bind:value={$events_sess.pres_mgmt.qry_max__files}
|
||||
id="qry_limit__files"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__files}
|
||||
on:change={() => {
|
||||
handle_search__event_file({
|
||||
api_cfg: $ae_api,
|
||||
@@ -565,7 +566,7 @@ async function handle_search__event_presenter(
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_max__files,},
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_limit__files,},
|
||||
try_cache: false,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
@@ -575,8 +576,8 @@ async function handle_search__event_presenter(
|
||||
> -->
|
||||
|
||||
<select
|
||||
id="qry_max__files"
|
||||
bind:value={$events_sess.pres_mgmt.qry_max__files}
|
||||
id="qry_limit__files"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__files}
|
||||
on:change={() => {
|
||||
handle_search__event_file({
|
||||
api_cfg: $ae_api,
|
||||
@@ -587,7 +588,7 @@ async function handle_search__event_presenter(
|
||||
params: {
|
||||
'qry__enabled': 'enabled',
|
||||
'qry__hidden': 'not_hidden',
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_max__files,},
|
||||
'qry__limit': $events_sess.pres_mgmt.qry_limit__files,},
|
||||
try_cache: false,
|
||||
log_lvl: log_lvl,
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@ let ae_triggers: key_val = {};
|
||||
<!-- New standard page specific menu 2024-08-01 -->
|
||||
<div
|
||||
class="pres_mgmt__session_search {ae_snip.classes__events_pres_mgmt_menu}"
|
||||
class:border-none={!$events_loc.pres_mgmt.show_menu__session_search}
|
||||
class:border-gray-100={!$events_loc.pres_mgmt.show_menu__session_search}
|
||||
>
|
||||
|
||||
<!-- BEGIN: The menu button options -->
|
||||
@@ -113,11 +113,135 @@ let ae_triggers: key_val = {};
|
||||
|
||||
<!-- BEGIN: The expanded menu area for information and options -->
|
||||
<div
|
||||
class="flex flex-row items-center justify-around w-full bg-blue-100 hover:bg-blue-200 border border-blue-200 hover:border-blue-400 p-2 rounded-md"
|
||||
class="flex flex-row flex-wrap gap-1 items-center justify-around w-full bg-blue-100 hover:bg-blue-200 border border-blue-200 hover:border-blue-400 p-2 rounded-md"
|
||||
class:hidden={$events_loc.pres_mgmt.show_menu__session_search != 'options'}
|
||||
>
|
||||
|
||||
{#if $ae_loc.authenticated_access}
|
||||
<div
|
||||
class="flex flex-col gap-1 items-end w-56"
|
||||
>
|
||||
<!-- Max presenters select options -->
|
||||
<span
|
||||
class="flex flex-row gap-1 items-center justify-around"
|
||||
>
|
||||
<label
|
||||
class="text-sm w-32 text-right"
|
||||
for="qry_limit__presenters">
|
||||
Max presenters:
|
||||
</label>
|
||||
<select
|
||||
id="qry_limit__presenters"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__presenters}
|
||||
on:change={() => {
|
||||
// handle_search__event_presenter({
|
||||
// api_cfg: $ae_api,
|
||||
// event_id: $events_slct.event_id,
|
||||
// agree: true,
|
||||
// biography: null,
|
||||
// ft_search_str: '',
|
||||
// lk_search_str: '',
|
||||
// params: {
|
||||
// 'qry__enabled': 'enabled',
|
||||
// 'qry__hidden': 'not_hidden',
|
||||
// 'qry__limit': $events_sess.pres_mgmt.qry_limit__presenters,},
|
||||
// try_cache: false,
|
||||
// log_lvl: log_lvl,
|
||||
// });
|
||||
}}
|
||||
class="select w-20 text-sm"
|
||||
>
|
||||
<option value={25}>25</option>
|
||||
<option value={50}>50</option>
|
||||
<option value={75}>75</option>
|
||||
<option value={100}>100</option>
|
||||
<option value={200}>200</option>
|
||||
<option value={500}>500</option>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
<!-- Max sessions select options -->
|
||||
<span
|
||||
class="flex flex-row gap-1 items-center justify-around"
|
||||
>
|
||||
<label
|
||||
class="text-sm w-32 text-right"
|
||||
for="qry_limit__sessions">
|
||||
Max sessions:
|
||||
</label>
|
||||
<select
|
||||
id="qry_limit__sessions"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__sessions}
|
||||
on:change={() => {
|
||||
// handle_search__event_presenter({
|
||||
// api_cfg: $ae_api,
|
||||
// event_id: $events_slct.event_id,
|
||||
// agree: true,
|
||||
// biography: null,
|
||||
// ft_search_str: '',
|
||||
// lk_search_str: '',
|
||||
// params: {
|
||||
// 'qry__enabled': 'enabled',
|
||||
// 'qry__hidden': 'not_hidden',
|
||||
// 'qry__limit': $events_sess.pres_mgmt.qry_limit__sessions,},
|
||||
// try_cache: false,
|
||||
// log_lvl: log_lvl,
|
||||
// });
|
||||
}}
|
||||
class="select w-20 text-sm"
|
||||
>
|
||||
<option value={25}>25</option>
|
||||
<option value={50}>50</option>
|
||||
<option value={75}>75</option>
|
||||
<option value={100}>100</option>
|
||||
<option value={200}>200</option>
|
||||
<option value={500}>500</option>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
<!-- Max files select options -->
|
||||
<span
|
||||
class="flex flex-row gap-1 items-center justify-around"
|
||||
>
|
||||
<label
|
||||
class="text-sm w-32 text-right"
|
||||
for="qry_limit__files">
|
||||
Max files:
|
||||
</label>
|
||||
<select
|
||||
id="qry_limit__files"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__files}
|
||||
on:change={() => {
|
||||
// handle_search__event_presenter({
|
||||
// api_cfg: $ae_api,
|
||||
// event_id: $events_slct.event_id,
|
||||
// agree: true,
|
||||
// biography: null,
|
||||
// ft_search_str: '',
|
||||
// lk_search_str: '',
|
||||
// params: {
|
||||
// 'qry__enabled': 'enabled',
|
||||
// 'qry__hidden': 'not_hidden',
|
||||
// 'qry__limit': $events_sess.pres_mgmt.qry_limit__sessions,},
|
||||
// try_cache: false,
|
||||
// log_lvl: log_lvl,
|
||||
// });
|
||||
}}
|
||||
class="select w-20 text-sm"
|
||||
>
|
||||
<option value={25}>25</option>
|
||||
<option value={50}>50</option>
|
||||
<option value={75}>75</option>
|
||||
<option value={100}>100</option>
|
||||
<option value={200}>200</option>
|
||||
<option value={500}>500</option>
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if $ae_loc.authenticated_access}
|
||||
<div class="flex flex-col gap-1 items-center">
|
||||
<!-- Button to toggle between the showing hidden sessions -->
|
||||
{#if $events_loc.pres_mgmt.qry_hidden == 'all'}
|
||||
<button
|
||||
@@ -152,42 +276,43 @@ let ae_triggers: key_val = {};
|
||||
Show All (Hidden) Sessions?
|
||||
</button>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{#if $ae_loc.administrator_access}
|
||||
{#if $events_loc.pres_mgmt.qry_enabled == 'all'}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if ($events_loc.pres_mgmt.qry_enabled == 'all') {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'enabled';
|
||||
} else {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'all';
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-success"
|
||||
title="Hide disabled sessions?"
|
||||
>
|
||||
<span class="fas fa-eye-slash m-1"></span>
|
||||
Hide Disabled Sessions?
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if ($events_loc.pres_mgmt.qry_enabled == 'all') {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'enabled';
|
||||
} else {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'all';
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-warning"
|
||||
title="Show disabled sessions?"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span>
|
||||
Show All (Disabled) Sessions?
|
||||
</button>
|
||||
{#if $ae_loc.administrator_access}
|
||||
{#if $events_loc.pres_mgmt.qry_enabled == 'all'}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if ($events_loc.pres_mgmt.qry_enabled == 'all') {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'enabled';
|
||||
} else {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'all';
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-success"
|
||||
title="Hide disabled sessions?"
|
||||
>
|
||||
<span class="fas fa-eye-slash m-1"></span>
|
||||
Hide Disabled Sessions?
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if ($events_loc.pres_mgmt.qry_enabled == 'all') {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'enabled';
|
||||
} else {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'all';
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-warning"
|
||||
title="Show disabled sessions?"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span>
|
||||
Show All (Disabled) Sessions?
|
||||
</button>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div> <!-- END: The expanded menu area for information and options -->
|
||||
@@ -218,6 +343,7 @@ let ae_triggers: key_val = {};
|
||||
<span class="fas fa-chevron-up m-1"></span>
|
||||
{#if $events_loc.pres_mgmt.show_menu__session_search}
|
||||
Hide
|
||||
<!-- Collapse -->
|
||||
{:else}
|
||||
Show
|
||||
{/if}
|
||||
|
||||
@@ -21,7 +21,7 @@ let ae_triggers: key_val = {};
|
||||
<!-- New standard page specific menu 2024-08-02 -->
|
||||
<div
|
||||
class="pres_mgmt__event_reports {ae_snip.classes__events_pres_mgmt_menu}"
|
||||
class:border-none={!$events_loc.pres_mgmt.show_menu__event_reports}
|
||||
class:border-gray-100={!$events_loc.pres_mgmt.show_menu__event_reports}
|
||||
>
|
||||
|
||||
<!-- BEGIN: The menu button options -->
|
||||
@@ -29,7 +29,7 @@ let ae_triggers: key_val = {};
|
||||
class="flex flex-row flex-wrap gap-1 items-center justify-around w-full">
|
||||
|
||||
<span
|
||||
class="ae_menu__navigation_options"
|
||||
class="ae_menu__navigation_options flex flex-row items-center justify-around"
|
||||
>
|
||||
<a
|
||||
href="/events_pres_mgmt/event/{$lq__event_obj?.event_id_random}"
|
||||
@@ -41,8 +41,33 @@ let ae_triggers: key_val = {};
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="ae_menu__object_options"
|
||||
class="ae_menu__object_options flex flex-row items-center justify-around"
|
||||
>
|
||||
<!-- Button to toggle between showing and not showing the extended options menu -->
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if ($events_loc.pres_mgmt.show_menu__event_reports == 'options') {
|
||||
$events_loc.pres_mgmt.show_menu__event_reports = null;
|
||||
} else {
|
||||
$events_loc.pres_mgmt.show_menu__event_reports = 'options';
|
||||
}
|
||||
}}
|
||||
class="{ae_snip.classes__events_pres_mgmt_menu__button}"
|
||||
class:hidden={!$ae_loc.trusted_access}
|
||||
title="Options for the presenter"
|
||||
>
|
||||
<span class="fas fa-cog m-1"></span>
|
||||
{#if $events_loc.pres_mgmt.show_menu__event_reports == 'options'}
|
||||
Hide
|
||||
{:else}
|
||||
<span class="hidden">
|
||||
Show
|
||||
</span>
|
||||
{/if}
|
||||
Options?
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
@@ -71,11 +96,210 @@ let ae_triggers: key_val = {};
|
||||
<!-- BEGIN: The expanded menu area for information and options -->
|
||||
<div
|
||||
class="flex flex-row items-center justify-around w-full bg-blue-100 hover:bg-blue-200 border border-blue-200 hover:border-blue-400 p-2 rounded-md"
|
||||
class:hidden={$events_loc.pres_mgmt.show_menu__session != 'options'}
|
||||
class:hidden={$events_loc.pres_mgmt.show_menu__event_reports != 'options'}
|
||||
>
|
||||
|
||||
{#if $ae_loc.authenticated_access}
|
||||
<div
|
||||
class="flex flex-col gap-1 items-end w-56"
|
||||
>
|
||||
<!-- Max presenters select options -->
|
||||
<span
|
||||
class="flex flex-row gap-1 items-center justify-around"
|
||||
>
|
||||
<label
|
||||
class="text-sm w-32 text-right"
|
||||
for="qry_limit__presenters">
|
||||
Max presenters:
|
||||
</label>
|
||||
<select
|
||||
id="qry_limit__presenters"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__presenters}
|
||||
on:change={() => {
|
||||
// handle_search__event_presenter({
|
||||
// api_cfg: $ae_api,
|
||||
// event_id: $events_slct.event_id,
|
||||
// agree: true,
|
||||
// biography: null,
|
||||
// ft_search_str: '',
|
||||
// lk_search_str: '',
|
||||
// params: {
|
||||
// 'qry__enabled': 'enabled',
|
||||
// 'qry__hidden': 'not_hidden',
|
||||
// 'qry__limit': $events_sess.pres_mgmt.qry_limit__presenters,},
|
||||
// try_cache: false,
|
||||
// log_lvl: log_lvl,
|
||||
// });
|
||||
}}
|
||||
class="select w-20 text-sm"
|
||||
>
|
||||
<option value={25}>25</option>
|
||||
<option value={50}>50</option>
|
||||
<option value={75}>75</option>
|
||||
<option value={100}>100</option>
|
||||
<option value={200}>200</option>
|
||||
<option value={500}>500</option>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
<!-- Max sessions select options -->
|
||||
<span
|
||||
class="flex flex-row gap-1 items-center justify-around"
|
||||
>
|
||||
<label
|
||||
class="text-sm w-32 text-right"
|
||||
for="qry_limit__sessions">
|
||||
Max sessions:
|
||||
</label>
|
||||
<select
|
||||
id="qry_limit__sessions"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__sessions}
|
||||
on:change={() => {
|
||||
// handle_search__event_presenter({
|
||||
// api_cfg: $ae_api,
|
||||
// event_id: $events_slct.event_id,
|
||||
// agree: true,
|
||||
// biography: null,
|
||||
// ft_search_str: '',
|
||||
// lk_search_str: '',
|
||||
// params: {
|
||||
// 'qry__enabled': 'enabled',
|
||||
// 'qry__hidden': 'not_hidden',
|
||||
// 'qry__limit': $events_sess.pres_mgmt.qry_limit__sessions,},
|
||||
// try_cache: false,
|
||||
// log_lvl: log_lvl,
|
||||
// });
|
||||
}}
|
||||
class="select w-20 text-sm"
|
||||
>
|
||||
<option value={25}>25</option>
|
||||
<option value={50}>50</option>
|
||||
<option value={75}>75</option>
|
||||
<option value={100}>100</option>
|
||||
<option value={200}>200</option>
|
||||
<option value={500}>500</option>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
<!-- Max files select options -->
|
||||
<span
|
||||
class="flex flex-row gap-1 items-center justify-around"
|
||||
>
|
||||
<label
|
||||
class="text-sm w-32 text-right"
|
||||
for="qry_limit__files">
|
||||
Max files:
|
||||
</label>
|
||||
<select
|
||||
id="qry_limit__files"
|
||||
bind:value={$events_sess.pres_mgmt.qry_limit__files}
|
||||
on:change={() => {
|
||||
// handle_search__event_presenter({
|
||||
// api_cfg: $ae_api,
|
||||
// event_id: $events_slct.event_id,
|
||||
// agree: true,
|
||||
// biography: null,
|
||||
// ft_search_str: '',
|
||||
// lk_search_str: '',
|
||||
// params: {
|
||||
// 'qry__enabled': 'enabled',
|
||||
// 'qry__hidden': 'not_hidden',
|
||||
// 'qry__limit': $events_sess.pres_mgmt.qry_limit__sessions,},
|
||||
// try_cache: false,
|
||||
// log_lvl: log_lvl,
|
||||
// });
|
||||
}}
|
||||
class="select w-20 text-sm"
|
||||
>
|
||||
<option value={25}>25</option>
|
||||
<option value={50}>50</option>
|
||||
<option value={75}>75</option>
|
||||
<option value={100}>100</option>
|
||||
<option value={200}>200</option>
|
||||
<option value={500}>500</option>
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if $ae_loc.authenticated_access}
|
||||
<div class="flex flex-col gap-1 items-center">
|
||||
<!-- Button to toggle between the showing hidden sessions -->
|
||||
{#if $events_loc.pres_mgmt.qry_hidden == 'all'}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if ($events_loc.pres_mgmt.qry_hidden == 'all') {
|
||||
$events_loc.pres_mgmt.qry_hidden = 'not_hidden';
|
||||
} else {
|
||||
$events_loc.pres_mgmt.qry_hidden = 'all';
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-success"
|
||||
title="Hide sessions marked as hidden?"
|
||||
>
|
||||
<span class="fas fa-eye-slash m-1"></span>
|
||||
Hide Sessions?
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if ($events_loc.pres_mgmt.qry_hidden == 'all') {
|
||||
$events_loc.pres_mgmt.qry_hidden = 'not_hidden';
|
||||
} else {
|
||||
$events_loc.pres_mgmt.qry_hidden = 'all';
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-warning"
|
||||
title="Show all (hidden) sessions?"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span>
|
||||
Show All (Hidden) Sessions?
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
{#if $ae_loc.administrator_access}
|
||||
{#if $events_loc.pres_mgmt.qry_enabled == 'all'}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if ($events_loc.pres_mgmt.qry_enabled == 'all') {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'enabled';
|
||||
} else {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'all';
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-success"
|
||||
title="Hide disabled sessions?"
|
||||
>
|
||||
<span class="fas fa-eye-slash m-1"></span>
|
||||
Hide Disabled Sessions?
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if ($events_loc.pres_mgmt.qry_enabled == 'all') {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'enabled';
|
||||
} else {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'all';
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-warning"
|
||||
title="Show disabled sessions?"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span>
|
||||
Show All (Disabled) Sessions?
|
||||
</button>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div> <!-- END: The expanded menu area for information and options -->
|
||||
|
||||
|
||||
<Element_data_store
|
||||
ds_code="events__pres_mgmt__reports_help"
|
||||
ds_name="Default: Events - Pres Mgmt Event Reports Help"
|
||||
@@ -108,4 +332,4 @@ let ae_triggers: key_val = {};
|
||||
<!-- Menu? -->
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- End of the new standard page specific menu -->
|
||||
|
||||
@@ -22,7 +22,7 @@ let ae_triggers: key_val = {};
|
||||
<!-- New standard page specific menu 2024-08-01 -->
|
||||
<div
|
||||
class="pres_mgmt__presenter_view_menu {ae_snip.classes__events_pres_mgmt_menu}"
|
||||
class:border-none={!$events_loc.pres_mgmt.show_menu__presenter}
|
||||
class:border-gray-100={!$events_loc.pres_mgmt.show_menu__presenter}
|
||||
>
|
||||
|
||||
<!-- BEGIN: The menu button options -->
|
||||
|
||||
@@ -23,7 +23,7 @@ let ae_triggers: key_val = {};
|
||||
<!-- New standard page specific menu 2024-08-01 -->
|
||||
<div
|
||||
class="pres_mgmt__session_menu {ae_snip.classes__events_pres_mgmt_menu}"
|
||||
class:border-none={!$events_loc.pres_mgmt.show_menu__session}
|
||||
class:border-gray-100={!$events_loc.pres_mgmt.show_menu__session}
|
||||
>
|
||||
|
||||
<!-- BEGIN: The menu button options -->
|
||||
|
||||
Reference in New Issue
Block a user