Style updates. Allow easier ability to change presentation code and description.

This commit is contained in:
Scott Idem
2025-06-25 14:44:47 -04:00
parent 7cb8639230
commit 370396a633
2 changed files with 54 additions and 9 deletions

View File

@@ -185,6 +185,35 @@ export let log_lvl: number = 0;
"{event_presentation_obj?.name}"
</Element_ae_crud>
<!-- "{event_presentation_obj.name}" -->
<Element_ae_crud
api_cfg={$ae_api}
object_type={'event_presentation'}
object_id={event_presentation_obj?.event_presentation_id_random}
field_name={'code'}
field_type={'text'}
field_value={event_presentation_obj?.code}
allow_null={false}
hide_edit_btn={!$ae_loc.trusted_access || !$ae_loc.edit_mode}
outline_element={false}
show_crud={false}
display_inline={true}
display_block_edit={true}
class_li={''}
on:ae_crud_updated={e => {
console.log(`ae_crud_updated:`, e.detail);
events_func.load_ae_obj_id__event_presentation({
api_cfg: $ae_api, event_presentation_id: event_presentation_obj.event_presentation_id_random, log_lvl: 1
})
.then(function (load_results) {
})
.then(function (load_results) {
// $events_trigger = 'load__event_presentation_obj_id';
// $events_trig_kv['event_presentation_id'] = event_presentation_obj.event_presentation_id_random;
});
}}
>
{#if event_presentation_obj?.code || event_presentation_obj?.abstract_code}
<span class="text-sm text-gray-500 bg-yellow-100 p-1 rounded-md border border-yellow-200"
title="Presentation code {event_presentation_obj?.code} and abstract code {event_presentation_obj?.abstract_code}"
@@ -192,11 +221,19 @@ export let log_lvl: number = 0;
<span class="fas fa-barcode"></span>
{event_presentation_obj?.code ?? ''} {event_presentation_obj?.abstract_code ?? ''}
</span>
{:else if $ae_loc.trusted_access && $ae_loc.edit_mode}
<strong class="text-sm font-normal">Code:</strong>
<span class="font-normal"
title="No code provided for this presentation"
>
{@html ae_snip.html__not_set}
</span>
{/if}
</Element_ae_crud>
</h4>
<div
class:hidden={!$events_loc.pres_mgmt.show_content__presentation_description}
class:hidden={!$events_loc.pres_mgmt.show_content__presentation_description && !($ae_loc.administrator_access && $ae_loc.edit_mode)}
>
<Element_ae_crud
api_cfg={$ae_api}