The IDAA BB post page is looking good. Testing....

This commit is contained in:
Scott Idem
2025-06-27 15:55:49 -04:00
parent 74a098fbde
commit e87fae34f8
5 changed files with 31 additions and 13 deletions

View File

@@ -62,14 +62,26 @@ if (browser) {
</title> </title>
</svelte:head> </svelte:head>
<h2 class="ae_title event__title text-2xl font-bold"> <h2
class="
ae_title event__title
text-2xl font-bold
flex flex-row gap-2 items-center justify-between
w-full
"
>
<!-- <span class="ae_icon fas fa-calendar-alt"></span> --> <!-- <span class="ae_icon fas fa-calendar-alt"></span> -->
<span class="ae_icon fas fa-calendar-day"></span> <span class="ae_icon fas fa-calendar-day"></span>
{$lq__event_obj?.name ? $lq__event_obj?.name : 'Recovery Meeting'} {$lq__event_obj?.name ? $lq__event_obj?.name : 'Recovery Meeting'}
</h2> </h2>
<div <div
class="flex flex-row gap-2 items-center justify-between mb-4" class="
flex flex-row gap-2 items-center justify-between
w-full
p-1 pb-2 mb-2
border-b border-b-surface-300-700
"
> >
<a href="/idaa/recovery_meetings" class="novi_btn btn btn-secondary btn-sm <a href="/idaa/recovery_meetings" class="novi_btn btn btn-secondary btn-sm
@@ -99,7 +111,7 @@ if (browser) {
</button> </button>
{:else} {:else}
<!-- This checks if the currently logged in Novi user has a matching UUID or email address. --> <!-- This checks if the currently logged in Novi user has a matching UUID or email address. -->
{#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || idaa_event_obj?.external_person_id === $idaa_loc.novi_uuid || idaa_event_obj?.contact_li_json[0].email === $idaa_loc.novi_email} {#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || $lq__event_obj?.external_person_id === $idaa_loc.novi_uuid || $lq__event_obj?.contact_li_json[0].email === $idaa_loc.novi_email}
<button <button
type="button" type="button"
class="novi_btn btn btn-warning btn-sm preset-tonal-warning border border-warning-500 class="novi_btn btn btn-warning btn-sm preset-tonal-warning border border-warning-500

View File

@@ -1128,7 +1128,7 @@ function send_staff_notification_email() {
type="button" type="button"
on:click|preventDefault={() => { on:click|preventDefault={() => {
if (confirm('Are you sure you want to lock these fields? The primary contact name and email address are required.')) { if (confirm('Are you sure you want to lock these fields? The primary contact name and email address are required.')) {
if (!$idaa_slct.event_obj.contact_li_json[0]) { if (!$idaa_slct.event_obj?.contact_li_json[0]) {
$idaa_slct.event_obj.contact_li_json[0] = {}; $idaa_slct.event_obj.contact_li_json[0] = {};
} }
$idaa_slct.event_obj.contact_li_json[0].unlock = true; $idaa_slct.event_obj.contact_li_json[0].unlock = true;
@@ -1155,7 +1155,7 @@ function send_staff_notification_email() {
{/if} {/if}
<label for="contact_1_full_name">Full name <label for="contact_1_full_name">Full name
{#if !($ae_loc.administrator_access || $idaa_slct.event_obj?.contact_li_json[0]?.unlock)} {#if !($ae_loc.administrator_access || ($idaa_slct.event_obj?.contact_li_json?.length && $idaa_slct.event_obj?.contact_li_json[0]?.unlock))}
<span class="fas fa-lock" title="Field is locked"></span> <span class="fas fa-lock" title="Field is locked"></span>
{:else} {:else}
<span class="fas fa-unlock" title="Field is unlocked"></span> <span class="fas fa-unlock" title="Field is unlocked"></span>
@@ -1167,12 +1167,12 @@ function send_staff_notification_email() {
placeholder="Full name" placeholder="Full name"
value={($lq__event_obj?.contact_li_json && $lq__event_obj?.contact_li_json[0] && $lq__event_obj?.contact_li_json[0].full_name ? $lq__event_obj?.contact_li_json[0].full_name : '')} value={($lq__event_obj?.contact_li_json && $lq__event_obj?.contact_li_json[0] && $lq__event_obj?.contact_li_json[0].full_name ? $lq__event_obj?.contact_li_json[0].full_name : '')}
autocomplete="name" autocomplete="name"
readonly={!($ae_loc.trusted_access || $idaa_slct.event_obj?.contact_li_json[0]?.unlock)} readonly={!($ae_loc.trusted_access || ($idaa_slct.event_obj?.contact_li_json?.length && $idaa_slct.event_obj?.contact_li_json[0]?.unlock))}
required={!$ae_loc.trusted_access} required={!$ae_loc.trusted_access}
> >
</label> </label>
<label for="contact_1_email">Email <label for="contact_1_email">Email
{#if !($ae_loc.administrator_access || $idaa_slct.event_obj?.contact_li_json[0]?.unlock)} {#if !($ae_loc.administrator_access || ($idaa_slct.event_obj?.contact_li_json?.length && $idaa_slct.event_obj?.contact_li_json[0]?.unlock))}
<span class="fas fa-lock" title="Field is locked"></span> <span class="fas fa-lock" title="Field is locked"></span>
{:else} {:else}
<span class="fas fa-unlock" title="Field is unlocked"></span> <span class="fas fa-unlock" title="Field is unlocked"></span>
@@ -1185,7 +1185,7 @@ function send_staff_notification_email() {
placeholder="Email" placeholder="Email"
value={($lq__event_obj?.contact_li_json && $lq__event_obj?.contact_li_json[0] && $lq__event_obj?.contact_li_json[0].email ? $lq__event_obj?.contact_li_json[0].email : '')} value={($lq__event_obj?.contact_li_json && $lq__event_obj?.contact_li_json[0] && $lq__event_obj?.contact_li_json[0].email ? $lq__event_obj?.contact_li_json[0].email : '')}
autocomplete="email" autocomplete="email"
readonly={!($ae_loc.trusted_access || $idaa_slct.event_obj?.contact_li_json[0].unlock)} readonly={!($ae_loc.trusted_access || ($idaa_slct.event_obj?.contact_li_json?.length && $idaa_slct.event_obj?.contact_li_json[0].unlock))}
required={!$ae_loc.trusted_access} required={!$ae_loc.trusted_access}
> >
</label> </label>

View File

@@ -53,11 +53,10 @@ if ($idaa_slct.event_id) {
<section class="svelte_component ae_section ae_view event_obj view__event_obj space-y-2"> <section class="svelte_component ae_section ae_view event_obj view__event_obj space-y-2">
<h2 class="ae_title event__title text-2xl font-bold"> <!-- <h2 class="ae_title event__title text-2xl font-bold">
<!-- <span class="ae_icon fas fa-calendar-alt"></span> -->
<span class="ae_icon fas fa-calendar-day"></span> <span class="ae_icon fas fa-calendar-day"></span>
{$lq__event_obj?.name ? $lq__event_obj?.name : 'Recovery Meeting'} {$lq__event_obj?.name ? $lq__event_obj?.name : 'Recovery Meeting'}
</h2> </h2> -->
<div class="p-2 bg-white shadow-md rounded-lg"> <div class="p-2 bg-white shadow-md rounded-lg">
<div <div

View File

@@ -165,9 +165,11 @@ function add_activity_log(
> >
<span class="fas fa-envelope-open m-1"></span> <span class="fas fa-envelope-open m-1"></span>
<!-- <span class="fas fa-info-circle"></span> --> <!-- <span class="fas fa-info-circle"></span> -->
Info X Info
</a> </a>
<button <button
type="button"
disabled={true}
on:click={() => { on:click={() => {
$idaa_slct.event_id = idaa_event_obj?.event_id; $idaa_slct.event_id = idaa_event_obj?.event_id;
$idaa_slct.event_obj = idaa_event_obj; $idaa_slct.event_obj = idaa_event_obj;
@@ -219,6 +221,8 @@ function add_activity_log(
<!-- This checks if the currently logged in Novi user has a matching UUID or email address. --> <!-- This checks if the currently logged in Novi user has a matching UUID or email address. -->
{#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || idaa_event_obj?.external_person_id === $idaa_loc.novi_uuid || idaa_event_obj?.contact_li_json[0].email === $idaa_loc.novi_email} {#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || idaa_event_obj?.external_person_id === $idaa_loc.novi_uuid || idaa_event_obj?.contact_li_json[0].email === $idaa_loc.novi_email}
<button <button
type="button"
disabled={true}
on:click={() => { on:click={() => {
$idaa_slct.event_id = idaa_event_obj?.event_id; $idaa_slct.event_id = idaa_event_obj?.event_id;
$idaa_slct.event_obj = idaa_event_obj; $idaa_slct.event_obj = idaa_event_obj;

View File

@@ -331,7 +331,10 @@ $effect(() => {
<section <section
class=" class="
module_main_content main_content grow px-1 md:px-2 pb-28 module_main_content main_content
grow
px-1 md:px-2 pb-28
flex flex-col gap-2 items-center justify-start
" "
> >